---
title: Error
framework: applenewsapi
role: symbol
role_heading: Object
path: applenewsapi/error
---

# Error

See the properties of an error the Apple News API returned.

## Declaration

```data
object Error
```

## Properties

code: An error code that, in combination with the key path, uniquely identifies the error for the specified endpoint. Returned: Always keyPath: An array of field names that uniquely identifies a field in the JSON input of the request. See Understanding the keyPath Array. Returned: Sometimes message: A user-friendly, detailed explanation of the error code. Returned: Sometimes status: A code the server issues in response to a request. Returned: Always value: If applicable, the value supplied in the request for the field that keyPath specifies. Returned: Sometimes

## Mentioned in

Getting Ready to Publish and Manage Your Articles

## See Also

### Errors

- [About Apple News API Error Messages](applenews/about-apple-news-api-error-messages.md)
- [Warning](applenewsapi/warning.md)
- [Code](applenewsapi/code.md)
- [Status](applenewsapi/status.md)
