350-401 · Question #482
An engineer runs the code against an API of Cisco DNA Center, and the platform returns this output. What does the response indicate?
The correct answer is D. The HTTP method is incorrect. The API response indicates that the HTTP method used in the request, such as GET, POST, or PUT, is not supported by the specific Cisco DNA Center API endpoint that was accessed.
Question
Exhibits
Options
- AThe authentication credentials are incorrect
- BThe URL string is incorrect.
- CThe Cisco DNA Center API port is incorrect
- DThe HTTP method is incorrect
How the community answered
(39 responses)- A10% (4)
- B21% (8)
- C3% (1)
- D67% (26)
Why each option
The API response indicates that the HTTP method used in the request, such as GET, POST, or PUT, is not supported by the specific Cisco DNA Center API endpoint that was accessed.
Incorrect authentication credentials would typically result in an HTTP 401 Unauthorized or 403 Forbidden status code, indicating a permissions issue rather than an improper method.
An incorrect URL string usually leads to an HTTP 404 Not Found error, as the server cannot locate the specified resource path.
An incorrect API port would likely cause a connection failure or timeout before the API server could even process the HTTP request and return an HTTP status code.
An incorrect HTTP method error (typically indicated by an HTTP 405 Method Not Allowed status code) means the client attempted an operation (e.g., a POST request) on an API endpoint that only supports a different method (e.g., GET requests), or vice-versa, making the request invalid for that specific resource.
Concept tested: Cisco DNA Center API error handling (HTTP methods)
Source: https://developer.cisco.com/docs/dna-center/#!rest-api-basics
Topics
Community Discussion
No community discussion yet for this question.

