2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
set: 4
|
|
|
|
code: 405
|
|
|
|
title: Method Not Allowed
|
2015-11-07 05:34:40 +01:00
|
|
|
references:
|
|
|
|
"Rails HTTP Status Symbol": ":method_not_allowed"
|
2016-01-27 23:08:33 +01:00
|
|
|
"Go HTTP Status Constant": "http.StatusMethodNotAllowed"
|
2016-04-19 15:19:17 +02:00
|
|
|
"Symfony HTTP Status Constant": "Response::HTTP_METHOD_NOT_ALLOWED"
|
2016-05-22 01:07:17 +02:00
|
|
|
"Python2 HTTP Status Constant": "httplib.METHOD_NOT_ALLOWED"
|
|
|
|
"Python3+ HTTP Status Constant": "http.client.METHOD_NOT_ALLOWED"
|
|
|
|
"Python3.5+ HTTP Status Constant": "http.HTTPStatus.METHOD_NOT_ALLOWED"
|
2015-11-06 21:39:33 +01:00
|
|
|
---
|
|
|
|
|
2016-04-23 02:12:07 +02:00
|
|
|
The method received in the request-line is known by the origin server but not supported by the target resource.
|
2015-11-07 06:45:46 +01:00
|
|
|
|
2016-04-23 02:12:07 +02:00
|
|
|
The origin server MUST generate an Allow header field in a 405 response containing a list of the target resource's currently supported methods.
|
2015-11-07 05:34:40 +01:00
|
|
|
|
2016-04-23 02:12:07 +02:00
|
|
|
A 405 response is cacheable by default; i.e., unless otherwise indicated by the method definition or explicit cache controls<sup>[1](#ref-1)</sup>.
|
2015-11-07 05:34:40 +01:00
|
|
|
|
2015-11-09 02:44:05 +01:00
|
|
|
---
|
|
|
|
|
|
|
|
* <span id="ref-1"><sup>1</sup> Calculating Heuristic Freshness
|
|
|
|
[RFC7234 Section 4.2.2][2]</span>
|
|
|
|
* Source: [RFC7231 Section 6.5.5][1]
|
2015-11-07 05:34:40 +01:00
|
|
|
|
|
|
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.5>
|
2016-01-27 23:08:33 +01:00
|
|
|
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|