500 Server Error

Version: 1.0.0 Error Type: 500-server-error HTTP Status: 500 / 503


Server error examples including internal server errors and service unavailable responses. These are transient errors that should be retried with appropriate backoff strategies.

Scenario: Internal Server Error

Endpoint: Any

Request:

{
  "method": "GET",
  "url": "http://localhost:8080/api/player/1-11",
  "headers": {
    "Accept": "application/json"
  }
}

Response (500):

{
  "error": "Internal server error",
  "code": 500,
  "details": [
    "An unexpected error occurred"
  ],
  "request_id": "req_1234567890"
}

Error Handling


Scenario: Service Unavailable

Endpoint: Any

Request:

{
  "method": "GET",
  "url": "http://localhost:8080/api/player/1-11",
  "headers": {
    "Accept": "application/json"
  }
}

Response (503):

{
  "headers": {
    "Content-Type": "application/json",
    "Retry-After": "30"
  },
  "body": {
    "error": "Service unavailable",
    "code": 503,
    "details": [
      "Service is temporarily unavailable"
    ],
    "retry_after": 30
  }
}

Error Handling


Best Practices