Correct answer is A. Tested using Postman.
When using application/xml on the Accept Header (HTTP 400 Bad Request):
{
"errors": {
"error": [
{
"error-message": "mismatched keypaths: /interface , /if:interfaces",
"error-path": "/ietf-interfaces:interfaces",
"error-tag": "malformed-message",
"error-type": "application"
}
]
}
}
When using application/xml on the Content-Type Header (HTTP 415 Unsupported Media Type):
{
"errors": {
"error": [
{
"error-message": "Unsupported media type: application/xml ; Should be one of: application/yang-data+xml, application/yang-data+json.",
"error-tag": "malformed-message",
"error-type": "application"
}
]
}
}