Problem code
method_not_allowed
| Status | 405 Method Not Allowed |
| Type | https://api.librarika.dev.raynux.com/problems/method_not_allowed |
| Title | Method not allowed |
| Retry | No. The same request gets the same answer until you change it. |
| Headers | Allow lists the path's methods, OPTIONS included |
What it means
The path exists but not with this method. v1 has no DELETE: an action such as cancelling a hold is POST /{collection}/{id}/{verb}.
What to do
Use a method from the Allow header. See the API conventions.
Example
HTTP/1.1 405 Method Not Allowed
Content-Type: application/problem+json
X-Request-ID: 01JD8Q3W6Y2N5K7M9P0R4S6T8V
{
"type": "https://api.librarika.dev.raynux.com/problems/method_not_allowed",
"title": "Method not allowed",
"status": 405,
"code": "method_not_allowed",
"detail": "Method Not Allowed",
"request_id": "01JD8Q3W6Y2N5K7M9P0R4S6T8V"
}
The type URI https://api.librarika.dev.raynux.com/problems/method_not_allowed is this page. The detail above is an example of the English text; it is translated into the request's language and may change, so match on code, never on detail.