CiscoCisco
200-901 · Question #675
200-901 Question #675: Real Exam Question with Answer & Explanation
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.
Understanding and Using APIs
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
Explanation
HTTP 405 Method Not Allowed is returned when the server understands the HTTP method used but the target resource does not permit it.
Common mistakes.
- A. 105 is not a valid HTTP status code - the 1xx range contains only informational responses such as 100 Continue and 101 Switching Protocols.
- B. 205 Reset Content is a 2xx success response indicating the client should reset the document view, unrelated to unsupported methods.
- C. 305 Use Proxy is a deprecated 3xx redirect response and has no relation to whether a resource supports a given method.
Concept tested. HTTP 405 Method Not Allowed status code
Reference. https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Status/405
Topics
#HTTP Status Codes#REST APIs#API Interaction#Web Protocols
Community Discussion
No community discussion yet for this question.