Skip to content

method_not_allowed

HTTP 405 · code method_not_allowed

The path exists, but not for this HTTP method.

Sent by the router when the path matches a route registered for other methods. The Allow header lists the methods that are accepted.

Use one of the methods in the Allow header.

{
"type": "https://photon.agenticmarket.dev/errors/method_not_allowed",
"title": "method not allowed",
"status": 405,
"code": "method_not_allowed"
}

Match on the code field rather than on title, which is meant for people and may change. See all error codes.