Http Code

405

Method Not Allowed

The server understands the request, but it does not allow the request's HTTP Method (GET, POST, etc...) for that resource. It responds with a list of the allowed methods for that resource in the response header `Allow:<methods>`.

Use Case

A client is trying to fetch google.com using a POST request which is normally used to send some data to the server to create resources, so the server responds with a 405 code specifying the header `Allow:GET`, meaning the client should use GET method for the request.