Error Types
Base Error Class
Azu::Response::Error
class Azu::Response::Error < Exception
getter status : Int32
getter message : String
getter context : ErrorContext?
def initialize(@message : String, @status : Int32 = 500, @context : ErrorContext? = nil)
end
endClient Errors (4xx)
BadRequest (400)
Unauthorized (401)
Forbidden (403)
NotFound (404)
MethodNotAllowed (405)
Conflict (409)
Gone (410)
UnprocessableEntity (422)
ValidationError (422)
TooManyRequests (429)
Server Errors (5xx)
InternalServerError (500)
NotImplemented (501)
BadGateway (502)
ServiceUnavailable (503)
GatewayTimeout (504)
ErrorContext
Creating Custom Errors
Error Response Format
HTTP Status Codes Summary
Code
Name
Class
See Also
Last updated
Was this helpful?
