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.
8 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 — Delete the menu — always 405, the menu is read-only (Pizza Orders API) Open & run this endpointGET https://funapi.dev/api/faults/v1/status/{code} — Return any status code on demand (200–599) (Fault Injection API) Open & run this endpointGET https://funapi.dev/api/echo/v1/get — httpbin-style /get — same echo, GET only (HTTP Echo & Inspect API) Open & run this endpointPOST https://funapi.dev/api/echo/v1/post — httpbin-style /post — same echo, POST only (HTTP Echo & Inspect API) Open & run this endpointPUT https://funapi.dev/api/echo/v1/put — httpbin-style /put — same echo, PUT only (HTTP Echo & Inspect API) Open & run this endpointPATCH https://funapi.dev/api/echo/v1/patch — httpbin-style /patch — same echo, PATCH only (HTTP Echo & Inspect API) Open & run this endpointDELETE https://funapi.dev/api/echo/v1/delete — httpbin-style /delete — same echo, DELETE only (HTTP Echo & Inspect API) Open & run this endpointPOST https://funapi.dev/api/mcp/v1/mcp — Streamable HTTP endpoint (JSON responses): initialize, tools, resources, prompts, ping (MCP Test Server) Open & run this endpointAll HTTP status codes · All 55 mock REST APIs · Getting started guide
Last updated