Skip to content
View raw ↗

Error Handling

Foundation APIs use standard HTTP status codes and return structured error responses.

Error Format

json
{
  "error": {
    "code": "ENTITY_NOT_FOUND",
    "message": "The requested entity does not exist.",
    "status": 404
  }
}

Common Status Codes

CodeMeaning
200Success
201Created
400Bad request — check your input
401Unauthorized — invalid or missing authentication
403Forbidden — valid auth but insufficient permissions
404Not found
429Rate limited — slow down
500Server error