200-901 · Question #323
Refer to the exhibit. Which HTTP code is returned after the RESTCONF query is executed?
The correct answer is A. 201. The RESTCONF query uses a POST method to create a new network interface resource.
Question
Refer to the exhibit. Which HTTP code is returned after the RESTCONF query is executed?
Exhibit
Options
- A201
- B204
- C302
- D304
How the community answered
(22 responses)- A91% (20)
- B5% (1)
- D5% (1)
Why each option
The RESTCONF query uses a POST method to create a new network interface resource.
A POST request that successfully creates a new resource on the server typically returns an HTTP status code 201 Created. This code indicates that the request has been fulfilled and resulted in the creation of a new resource.
204 No Content indicates that the server successfully processed the request but is not returning any content.
302 Found is a redirection status code indicating that the resource has been temporarily moved to a different URI.
304 Not Modified indicates that the resource has not been modified since the version specified by the request headers.
Concept tested: RESTCONF HTTP status codes for resource creation
Source: https://datatracker.ietf.org/doc/html/rfc8040#section-6.6
Topics
Community Discussion
No community discussion yet for this question.
