nerdexam
Cisco

350-401 · Question #573

Refer to the exhibit. After the code is run on a Cisco IOS-XE router, the response code is 204. What is the result of the script?

The correct answer is D. Interface GigabitEthernet2 is configured with IP address 10.10.10.1/24. Explanation HTTP response code 204 (No Content) indicates a successful request where the server has fulfilled it but returns no response body - this is the standard RESTCONF/NETCONF success response when a configuration is applied via a PATCH or PUT request, confirming that Gigab

Submitted by carlos_mx· Mar 6, 2026Automation

Question

Refer to the exhibit. After the code is run on a Cisco IOS-XE router, the response code is 204. What is the result of the script?

Exhibits

350-401 question #573 exhibit 1
350-401 question #573 exhibit 2

Options

  • AThe configuration fails because another interface is already configured with IP address 10.10.10.1/24.
  • BThe configuration fails because interface GigabitEthernet2 is missing on the target device.
  • CThe configuration is successfully sent to the device in cleartext.
  • DInterface GigabitEthernet2 is configured with IP address 10.10.10.1/24

How the community answered

(25 responses)
  • A
    4% (1)
  • B
    4% (1)
  • D
    92% (23)

Explanation

Explanation

HTTP response code 204 (No Content) indicates a successful request where the server has fulfilled it but returns no response body - this is the standard RESTCONF/NETCONF success response when a configuration is applied via a PATCH or PUT request, confirming that GigabitEthernet2 has been successfully configured with IP address 10.10.10.1/24.

Why the distractors are wrong:

  • Option A is incorrect because a conflict (duplicate IP) would return a 409 Conflict error code, not 204.
  • Option B is incorrect because a missing interface would return a 404 Not Found error, not 204.
  • Option C is incorrect because RESTCONF uses HTTPS (not HTTP cleartext) for secure communication on Cisco IOS-XE.

Memory Tip

Use the "2xx = Success" rule from HTTP status codes:

  • 200 = OK (with response body)
  • 201 = Created
  • 204 = No Content (success, no body returned)

Any 4xx code signals a client-side error (404 = Not Found, 409 = Conflict), so if you see 204 on a RESTCONF question, the configuration was successful.

Topics

#API configuration#HTTP status codes#Network automation#IOS-XE

Community Discussion

No community discussion yet for this question.

Full 350-401 Practice