HTTP 4xx

405 Method Not Allowed

The HTTP method is not supported for this resource, for example a POST to a read-only endpoint.

4xx Client error

What causes it

  • Using the wrong method, such as GET where POST is required.

How to fix it

Use the method the endpoint expects. Check the Allow header in the response for the permitted methods.

Example response

A typical raw HTTP response a client receives for a 405, with the headers this code is defined around.

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

Know before your visitors do.

Sentinel checks your site around the clock from multiple regions and alerts you the moment it starts returning a 4xx error, so you can fix it before it costs you.