method_not_allowed
HTTP 405 · code method_not_allowed
The path exists, but not for this HTTP method.
When Photon sends it
Section titled “When Photon sends it”Sent by the router when the path matches a route registered for other methods. The Allow header lists the methods that are accepted.
What the client should do
Section titled “What the client should do”Use one of the methods in the Allow header.
Example response
Section titled “Example response”{ "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.