class Onyx::HTTP::Middleware::Router::MethodNotAllowed

Overview

Raised when router has methods for this path other than requested. The "Allow" header is set to the list of allowed methods in Middleware::Router. The default status code is 405. See https://httpstatuses.com/405.

Defined in:

onyx-http/middleware/router/method_not_allowed.cr

Instance methods inherited from class Onyx::HTTP::Error(405)

code : Int32 code, payload payload

Instance methods inherited from class Exception

status_message status_message