An engineer is troubleshooting a script that updates Junos configuration via the REST API. The payload is sent as JSON, but the device returns a 415 Unsupported Media Type error. What is the root cause?
Trap 1: The device is running out of memory buffers.
Resource exhaustion typically results in 503 Service Unavailable or 500 Internal Server Error.
Trap 2: The user account does not have permission to execute PUT requests.
Permission issues result in 403 Forbidden, not 415.
Trap 3: The target resource URI path does not exist on the device.
Non-existent resource URIs result in 404 Not Found.
- A
The device is running out of memory buffers.
Why wrong: Resource exhaustion typically results in 503 Service Unavailable or 500 Internal Server Error.
- B
The user account does not have permission to execute PUT requests.
Why wrong: Permission issues result in 403 Forbidden, not 415.
- C
The Content-Type header provided in the HTTP request is missing or specifies an unsupported media type.
415 Unsupported Media Type is explicitly caused by missing or invalid Content-Type headers.
- D
The target resource URI path does not exist on the device.
Why wrong: Non-existent resource URIs result in 404 Not Found.