method.not_allowed
The method is not allowed for this resource
- HTTP status
- 405
- Problem type
https://api.field-viewer.com/problems/method.not_allowed- Catalogue
- Generic (any operation)
What it means
The path exists, but not with this HTTP method.
What to do
Use a method the reference lists for this path.
Example response
Errors use RFC 9457 application/problem+json. Match on code (stable forever), not on title or detail, which are localised.
HTTP/1.1 405
Content-Type: application/problem+json
{
"type": "https://api.field-viewer.com/problems/method.not_allowed",
"title": "The method is not allowed for this resource",
"status": 405,
"detail": "The method is not allowed for this resource",
"instance": "/v1/context",
"code": "method.not_allowed",
"requestId": "req_01jcz3k8m4f6a9t2x7v5q0wbne"
}
Returned by
No operation declares this code in its contract. The API can return it for any request, for example from the request pipeline before an operation runs.