nerdexam
Cisco

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.

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

How the community answered

(48 responses)
  • A
    4% (2)
  • B
    8% (4)
  • C
    2% (1)
  • D
    85% (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.

A105

105 is not a valid HTTP status code - the 1xx range contains only informational responses such as 100 Continue and 101 Switching Protocols.

B205

205 Reset Content is a 2xx success response indicating the client should reset the document view, unrelated to unsupported methods.

C305

305 Use Proxy is a deprecated 3xx redirect response and has no relation to whether a resource supports a given method.

D405Correct

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

#HTTP Status Codes#REST APIs#API Interaction#Web Protocols

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice