Skip to content

// Server error

500 Internal Server Error

The server encountered an unexpected condition that prevented it from completing the request.

Common causes

  • An unhandled exception occurred.
  • A required dependency failed unexpectedly.
  • Invalid internal state reached application code.
  • A deployment or configuration defect surfaced.

Troubleshooting

  • Correlate the response with server logs using a request ID.
  • Avoid exposing stack traces or secrets to the caller.
  • Determine whether retrying is safe for the HTTP method.
  • Return a more specific 5xx status when the failure mode is known.

Example response

HTTP/1.1 500 Internal Server Error
Content-Type: application/json
X-Request-Id: req_abc

{ "code": "internal_error", "requestId": "req_abc" }

Related status codes

// GET STARTED

Inspect the complete API response.

Use REST Test to send a request and review its status, headers, timing and body together.

Start for free