Error handling
APIs return conventional HTTP status codes to indicate success or failure. In error cases, the body typically includes a JSON object with further details. Example:
{
"error": {
"code": "RESOURCE_NOT_FOUND",
"message": "The requested user was not found",
"details": {
"user_id": "abc123"
}
}
}
Updated 7 days ago