API Error Response Structure
ErrorCode (string)
A machine-readable code that programmatically identifies the type of error (e.g., InternalServerError, InvalidRequest). This allows your application to handle different error types gracefully.
ErrorDescription (string)
A clear, user-friendly message explaining the error. This message is considered safe to display directly to an end-user to inform them of the issue.
RequestId (string)
The unique identifier for the API request, corresponding to the x-request-id header value. It's essential to include this ID in any support tickets or bug reports for faster tracing and debugging.
Details (string, optional)
Contains more specific, technical information about the error, which can be useful for developers during troubleshooting. This field may be empty and should not be displayed to end-users.
Example Response
Below is an example of an error response for an invalid request.
{
"ErrorCode": "InvalidRequest",
"ErrorDescription": "One or more parameters in your request are invalid. Please check the documentation.",
"RequestId": "b2c3d4e5-f6a7-8901-2345-67890abcdef1",
"Details": "Field 'email' must be a valid email address."
}