Error resource
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.
JSON Representation
The error resource is composed of these resources:
{
"error": { "@odata.type": "odata.error" }
}
odata.error resource type
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 occurred |
message | string | A developer ready message about the error that occurred. 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. |