METHOD_NOT_ALLOWED

Method not allowed. The path exists, but not with this method.

Status405
Retry?No

What it means

The path is a Developer API route, but it does not answer this method. The Allow header lists the methods it does answer. For example, DELETE /v1/patients/4821 is a 405: the API has no deletes.

What to do

  • Use a method from the Allow header.

The response

Served as application/problem+json. Branch on code; detail describes this occurrence and can change wording at any time.

{
  "type": "https://docs.medos.one/errors/method-not-allowed",
  "title": "Method not allowed",
  "status": 405,
  "detail": "…",
  "instance": "/v1/…",
  "code": "METHOD_NOT_ALLOWED",
  "requestId": "01JCX6Q4W3J7N8Y2H5K9M1B0VD"
}

All error codes · Error index