200-901 · Question #61
Refer to the exhibit. The definition of the YANG module and a RESTCONF query sent to a Cisco IOS XE device is shown. Which statement is correct if the RESTCONF interface responds with a 204 status cod
The correct answer is B. The query updated the logging severity level or created it if not present on the device. HTTP 204 'No Content' is a success status code indicating the server successfully processed the request but is not returning any content in the response body. In RESTCONF, a 204 is typically returned after a successful PUT or PATCH operation - meaning the resource was updated, or
Question
Refer to the exhibit. The definition of the YANG module and a RESTCONF query sent to a Cisco IOS XE device is shown. Which statement is correct if the RESTCONF interface responds with a 204 status code?
Exhibit
Options
- AThe query retrieved the logging severity level.
- BThe query updated the logging severity level or created it if not present on the device
- CThe query failed at retrieving the logging severity level
- DThe query failed to set the logging severity level due to an invalid.
How the community answered
(49 responses)- A4% (2)
- B88% (43)
- C6% (3)
- D2% (1)
Explanation
HTTP 204 'No Content' is a success status code indicating the server successfully processed the request but is not returning any content in the response body. In RESTCONF, a 204 is typically returned after a successful PUT or PATCH operation - meaning the resource was updated, or (per RESTCONF RFC 8040 semantics) created if it did not already exist. It does not indicate a retrieval (which would return 200 with a body), nor does it indicate a failure (which would return 4xx or 5xx codes).
Topics
Community Discussion
No community discussion yet for this question.
