Skip to main content

Error Object

error object

Contains error data.

codeinteger<int32>

The HTTP code.

Default value: 403
error_refinteger

The mod.io error code.

Default value: 10000
messagestring

The server response to your request. Responses will vary depending on the endpoint, but the object structure will persist.

Default value: You do not have the required permissions to access this resource.
errorsobject

Optional Validation errors object. This field is only supplied if the response is a validation error 422 Unprocessible Entity. See errors documentation for more information.

Error Object
{
"error": {
"code": 403,
"error_ref": 10000,
"message": "You do not have the required permissions to access this resource.",
"errors": {}
}
}