Errors
method_not_allowed
This HTTP method is not allowed on this endpoint.
| HTTP status | Type | Code |
|---|---|---|
| 405 | invalid_request_error | method_not_allowed |
What it means
The endpoint exists but does not accept this HTTP method. Check the API reference for the methods it supports.
How to handle it
Fix the request before sending it again; retrying the same request returns the same error. error.param names the offending field when there is one.
Example response
{
"detail": "This HTTP method is not allowed on this endpoint.",
"error": {
"type": "invalid_request_error",
"code": "method_not_allowed",
"message": "This HTTP method is not allowed on this endpoint.",
"param": null,
"docUrl": "https://docs.callmitra.ai/errors/method_not_allowed",
"requestId": "req_3f9c2a7d1b8e4c6a9f0e2d4b6a8c0e1f"
}
}Branch on error.code; it never changes once published. The message text can change. See Errors for the envelope.
Returned by
Any endpoint can return this code.