Appearance
086 - Error Messages
Application error messages with codes and descriptions. This is an example of a MAML document.
maml
# Error message catalog
{
locale: "en"
errors: {
# Authentication errors
AUTH_FAILED: {
code: 401
message: "Authentication failed"
detail: """
Your credentials are invalid or expired.
Please sign in again or reset your password.
"""
}
FORBIDDEN: {
code: 403
message: "Access denied"
detail: """
You do not have permission to access this resource.
Contact your administrator if you believe this is an error.
"""
}
NOT_FOUND: {
code: 404
message: "Resource not found"
detail: """
The requested resource does not exist or has been removed.
Check the URL and try again.
"""
}
# Rate limiting
RATE_LIMITED: {
code: 429
message: "Too many requests"
detail: """
You have exceeded the rate limit.
Please wait before making another request.
"""
}
INTERNAL: {
code: 500
message: "Internal server error"
detail: """
An unexpected error occurred.
Our team has been notified and is investigating.
"""
}
}
}