The URL exists but not with this method. The response must include an Allow header listing what is permitted.
Defined in RFC 9110 §15.5.6 — 405 Method Not Allowed · MDN reference
A DELETE against a read-only collection, a POST to a URL that only supports GET, a client that has drifted from the API it was written against.
Read the Allow header rather than guessing. It is the machine-readable answer to "what can I do with this resource?".
Read the Allow header — a compliant 405 lists the methods that would have worked, which is the fastest route from the error to the fix. Never retry with the same method.
2 endpoints in this playground answer with 405. Every one is free, needs no signup, and can be called from the browser or with curl.
DELETE https://funapi.dev/api/pizza/v1/menu — Always. GET is the only supported method on /menu. (Pizza Orders API) Open & run this endpointGET https://funapi.dev/api/faults/v1/status/{code} — Returned on request (Fault Injection API) Open & run this endpointAll HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated