Module minerva_rest::controller::handlers
source · [−]Expand description
This submodule contains default status code catchers for errors within the API.
Structs
Default error structure implementing a Rocket responder for any status code.
Functions
Error catcher for 400 - Bad Request.
Exports an array of catcher functions to be used when mounting the server.
Default error catcher for any kind of error that was not treated
specifically.
internal 🔒
Error catcher for 500 - Internal Server Error.
Error catcher for 404 - Not Found.
Error catcher for 503 - Service Unavailable.
Returned whenever a microservice cannot be reached to complete the request.
Error catcher for 401 - Unauthorized.
Returned on problems with the authentication fairing.
Error catcher for 412 - Unprocessable Entity.
Returned when a JSON body to a request cannot be deserialized.