Error Objects

The DIDWW API returns error objects in JSONAPI format. Each error includes a title, detail, code, and status to help you diagnose issues.



Validation Error Object

A validation error occurs when a request contains invalid or missing data.

Attributes

Name

Type

Nullable

Description

title

string

False

Short error description.

detail

string

False

Detailed error description.

code

string

False

Always returns 100.

pointer

string

False

Path to the error attribute or relationship in the request payload.



Not Found Error Object

This error occurs when the requested resource cannot be found.

Attributes

Name

Type

Nullable

Description

title

string

False

Record not found.

detail

string

False

The record identified by {id} could not be found.

code

string

False

Always returns 404.

status

string

False

HTTP status code 404.



Insufficient Funds Error Object

This error occurs when your account balance is too low to complete the request.

Attributes

Name

Type

Nullable

Description

title

string

False

Insufficient funds.

detail

string

False

Your account balance is too low to complete this action.

code

string

False

Always returns 400.

status

string

False

HTTP status code 400.



Conflict Error Object

This error occurs when a request conflicts with the current state of the resource (for example, when trying to delete a resource that has dependencies).

Attributes

Name

Type

Nullable

Description

title

string

False

Conflict.

detail

string

False

Resource-specific message describing the conflict.

code

string

False

Always returns 409.

status

string

False

HTTP status code 409.