Skip to content

Method not allowed

Request / method-not-allowed

The endpoint exists but does not support the submitted HTTP method.

HTTP 405
  1. Read the Allow header for the methods supported at this URL.
  2. Check the method in the endpoint documentation, such as POST for sending and pricing or DELETE for cancellation.
  3. Use a supported method and retry with the required parameters and body.
Response headers
HTTP/1.1 405
Content-Type: application/problem+json
Content-Language: en-US
Allow: POST
Example API response
{
"type": "https://api.szybkisms.pl/problems/method-not-allowed/",
"status": 405,
"title": "Method Not Allowed",
"detail": "The requested endpoint supports only POST method.",
"code": "405-1",
"instance": "/rest/messages/sms"
}

code is a diagnostic code for support. instance provides the request path. The example uses the current API identifiers.

1 situations
HTTP 405Whole request failureLink ↗

The requested endpoint supports only {allowed_methods}.

The description depends on request data; {…} indicates a variable fragment.

Use a method listed in Allow and detail.

Any REST endpoint