The error resource is returned whenever an error occurs in the processing of a request.
Error responses follow the definition in the OData v4 specification for error responses.
See the topic on Error response for more information about handling errors with the OneDrive API.
The error resource is composed of these resources:
{
"error": { "@odata.type": "odata.error" }
}Inside the error response is an error resource that includes the following properties:
{
"code": "string",
"message": "string",
"innererror": { "@odata.type": "odata.error" }
}| Property name | Value | Description\ |
|---|---|---|
| code | string | An error code string for the error that occured |
| message | string | A developer ready message about the error that occured. This should not be displayed to the user directly. |
| innererror | error object | Optional. Additional error objects that may be more specific than the top level error. |