On this page

API

method_not_allowed

HTTP 405. Method not allowed

What it means

The path exists but not for this HTTP method.

What to do

The Allow response header lists the methods the path accepts.

Retrying

Do not retry the same request. Change it first.

Example

json
{
  "type": "https://reuseforge.com/docs/api/errors/method_not_allowed",
  "title": "Method not allowed",
  "status": 405,
  "detail": "This path does not accept DELETE.",
  "instance": "/api/v1/items/acme/invoice-extractor",
  "code": "method_not_allowed",
  "request_id": "req_c4v8n2m6x1z3"
}

Every error is application/problem+json (RFC 9457). Branch on code, show detail to people and quote request_id when you ask for help. See the error catalogue.