200-901 · Question #675
Which HTTP status means that the origin server knows the method that is received in the request line, but the target resource does not support the method?
The correct answer is D. 405. HTTP 405 Method Not Allowed is returned when the server understands the HTTP method used but the target resource does not permit it.
Question
Which HTTP status means that the origin server knows the method that is received in the request line, but the target resource does not support the method?
Options
- A105
- B205
- C305
- D405
How the community answered
(48 responses)- A4% (2)
- B8% (4)
- C2% (1)
- D85% (41)
Why each option
HTTP 405 Method Not Allowed is returned when the server understands the HTTP method used but the target resource does not permit it.
105 is not a valid HTTP status code - the 1xx range contains only informational responses such as 100 Continue and 101 Switching Protocols.
205 Reset Content is a 2xx success response indicating the client should reset the document view, unrelated to unsupported methods.
305 Use Proxy is a deprecated 3xx redirect response and has no relation to whether a resource supports a given method.
HTTP 405 Method Not Allowed is a client error response indicating the origin server recognizes the HTTP method in the request line (such as PUT or DELETE) but the specific resource identified by the URI does not support that method. The server is required to include an Allow header listing the methods the resource does support. This status is defined in RFC 9110 as a 4xx client error.
Concept tested: HTTP 405 Method Not Allowed status code
Source: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/405
Topics
Community Discussion
No community discussion yet for this question.