HTTP 405 Lab

HTTP 405 Method Not Allowed means the HTTP method (GET, POST, PUT, DELETE) used in the request is not supported for the target resource. The server MUST include an Allow header listing the methods that are supported. This differs from 501 Not Implemented (the server doesn't support the method at all) — 405 means the resource exists but doesn't accept that specific method.

Try it (live endpoint)

Response includes the status code, standard headers (including Content-Type), and a small diagnostic JSON body describing the request and returned status.

Simulator URL (copy in the app after load — not a normal link):

https://httpstatus.com/api/status/405

Example request:

curl -i "https://httpstatus.com/api/status/405"
Try in playground