405
⚠️ Client Error RFC 9110, Section 15.5.6

Method Not Allowed

The request method is known but not supported by the target resource.

Common Use

Used when trying POST on a read-only endpoint, or DELETE on a resource that doesn't support deletion.

API Endpoint

https://codes.uncodigo.com/http/405

Example with curl

curl -i https://codes.uncodigo.com/http/405

Try It

GET /http/405
Click "Send Request" to see the response...

Example

Request

DELETE /api/users HTTP/1.1

Response

HTTP/1.1 405 Method Not Allowed
Allow: GET, POST, PATCH

Related Headers

Allow

List of allowed methods

Allow: GET, POST, HEAD