-
Notifications
You must be signed in to change notification settings - Fork 1
Error codes
Mark Watts edited this page Oct 24, 2013
·
5 revisions
The list below describes the HTTP status codes that Slumber uses for various error conditions.
400 Bad Request
Returned when an error occurs during request deserialisation OR the operation expects a request body or parameter but none was supplied.
404 Not Found
Returned when no endpoint matching the request URL can be found.
405 Method Not Allowed
Returned when the endpoint does not support the HTTP verb used.
406 Not Acceptable
Returned when the Accept header contains an unsupported media type OR an error occurs during response serialisation.
415 Unsupported Media Type
Returned when the Content-Type header contains an unsupported media type.
500 Internal Server Error
Returned when an unhandled exception occurs during execution of a bound function.