Zest.
4xx · Client error

HTTP 405 Method Not Allowed

The URL exists but not for this method, such as POST to a read-only endpoint.

Common causes and fixes

  • The Allow header lists the methods that are supported.

Example response

HTTP
HTTP/1.1 405 Method Not Allowed
Allow: GET, HEAD
Content-Type: application/json; charset=utf-8

{ "error": "Method Not Allowed" }

Look up the headers shown here in the HTTP headers reference.

Common questions

What does HTTP 405 mean?
Method Not Allowed. The URL exists but not for this method, such as POST to a read-only endpoint.
How do I fix a 405 error?
The Allow header lists the methods that are supported.
Is 405 an error?
Yes. 4xx codes are client errors: The request contains a mistake or can't be fulfilled as sent.

Other 4xx codes