Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 634 Bytes

errors.md

File metadata and controls

18 lines (15 loc) · 634 Bytes

Errors

If a service call causes an exception that is not caught by the service itself then metadactyl-clj will respond with a standardized error message:

{
    "success": "false",
    "reason": "reason-for-error"
}

The HTTP status code that is returned will either be a 400 or a 500, depending on which type of exception is caught. In either case, the reason for the error should be examined. If the logging level is set to error or lower then the exception will be logged in metadactyl-clj's log file along with a stack trace. This can be helpful in cases where the true cause of the error isn't obvious at first.