class Athena::Routing::Exceptions::TooManyRequests

Defined in:

exceptions/too_many_requests.cr

Constructors

Instance methods inherited from class Athena::Routing::Exceptions::HTTPException

headers : HTTP::Headers headers, headers=(headers : HTTP::Headers) headers=, status : HTTP::Status status, status_code : Int32 status_code, to_json(builder : JSON::Builder) : Nil to_json

Constructor methods inherited from class Athena::Routing::Exceptions::HTTPException

new(status : HTTP::Status, message : String, cause : Exception | Nil = nil, headers : HTTP::Headers = HTTP::Headers.new)
new(status_code : Int32, message : String, cause : Exception | Nil = nil, headers : HTTP::Headers = HTTP::Headers.new)
new

Instance methods inherited from class Exception

to_json(builder : JSON::Builder) : Nil to_json

Constructor Detail

def self.new(message : String, retry_after : Number | String | Nil = nil, cause : Exception | Nil = nil, headers : HTTP::Headers = HTTP::Headers.new) #

See Athena::Routing::Exceptions::HTTPException#new.

If retry_after is provided, adds a retry-after header that represents the number of seconds or HTTP-date after which the request may be retried.


[View source]