mirror of
https://github.com/rmaake1/httpstatuses.git
synced 2024-11-02 00:32:36 +01:00
27 lines
839 B
Markdown
27 lines
839 B
Markdown
---
|
|
set: 4
|
|
code: 405
|
|
title: Method Not Allowed
|
|
references:
|
|
"Rails HTTP Status Symbol": ":method_not_allowed"
|
|
"Go HTTP Status Constant": "http.StatusMethodNotAllowed"
|
|
---
|
|
|
|
The method received in the request-line is known by the origin server but not
|
|
supported by the target resource.
|
|
|
|
The origin server MUST generate an Allow header field in a 405 response
|
|
containing a list of the target resource's currently supported methods.
|
|
|
|
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>.
|
|
|
|
---
|
|
|
|
* <span id="ref-1"><sup>1</sup> Calculating Heuristic Freshness
|
|
[RFC7234 Section 4.2.2][2]</span>
|
|
* Source: [RFC7231 Section 6.5.5][1]
|
|
|
|
[1]: <http://tools.ietf.org/html/rfc7231#section-6.5.5>
|
|
[2]: <http://tools.ietf.org/html/rfc7234#section-4.2.2>
|