Skip to content

method_not_allowed

method_not_allowed: HTTP 405, request error. This HTTP method is not allowed for this endpoint.


Code method_not_allowed
Type request_error
HTTP status 405
Default message This HTTP method is not allowed for this endpoint.

The request or the state of the resource is the problem. Change something before you send it again.

Every error has the same shape; error.code is this code, and meta.request_id is what to quote when you ask us about a request.

{
"error": {
"type": "request_error",
"code": "method_not_allowed",
"detail": "This HTTP method is not allowed for this endpoint.",
"documentation_url": "https://docs.baiyar.com/resources/errors/method_not_allowed/"
},
"meta": { "request_id": "req_…" }
}

All error codes