Section: Error response body

Standard error object

json
json
{
  "error": {
    "code": "EMAIL_ALREADY_EXISTS",
    "message": "An account with that email already exists.",
    "details": {
      "field": "email"
    },
    "request_id": "req_01HXYZ..."
  }
}
Explanation

Machine-readable codes plus a human-readable message help both client UX and support troubleshooting.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Error response body
Validation errors by field
Return multiple field-level issues at once.
OpenIn sheetjsonsame section
200 OK
Standard success response with a body.
400 Bad Request
Malformed request syntax or invalid shape.
201 Created
Successful resource creation.
401 Unauthorized
Missing or invalid authentication credentials.
202 Accepted
Accepted for asynchronous processing.