About Apple News API Error Messages
About Apple News API Error Messages
About Apple News API Error Messages Understand the error message format for the Apple News API.
Overview
In responses, errors are represented as an array of information in a common format. The following example shows a Read Channel 400 error. If the value of channel_id in your Read Channel request is not a UUID, you’ll receive an error such as the following:
HTTP/1.1 400 Bad Request
Date: Wed, 17 Dec 2014 22:06:52 GMT
Content-Type: application/json
Content-Length: 212
{
"errors": [
{
"code": "INVALID_TYPE",
"keyPath": [
"channel_id"
],
"value": "not_a_uuid"
}
]
}