Question 570
During an enterprise migration readiness test focused on http client and authorization errors, an engineer documents: A client sends an unsupported REST method to an otherwise valid endpoint and receives HTTP 405. Which option correctly addresses it?
Explanation
Correct Answer
Use a permitted method documented for that resource. HTTP 405 means the method is not allowed for the target.
Incorrect Answers
This alternative, Authenticate using a valid supported credential, fits: A RESTCONF client provides no accepted authentication and receives HTTP 401. HTTP 401 indicates authentication is required or unacceptable.
Obtain the required authorized scope rather than reusing the same privileges belongs to a different case: A logged-in user attempts a prohibited controller configuration action and receives HTTP 403. HTTP 403 means the server understood but forbids the operation.
Repair JSON syntax and the request body schema is not the precise answer here. It addresses: The client sends malformed JSON and the API returns HTTP 400.