Skip to main content
apiguide.dev

HTTP 500 — Internal Server Error

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

Status CodeHTTP 500
CategoryServer Error (5xx)
API Error Subtypes1 error schema
HTTP Headers0 headers

What does HTTP status code 500 mean?

The 500 Internal Server Error status code is the generic fallback error returned when the server encounters an unhandled exception or system failure.

When to use it in APIs

Returned automatically by application frameworks when code bugs, database server outages, or unhandled exceptions occur. Sanitized details should be logged, and a clean response returned.

How it compares to other codes

  • 502 Bad Gateway: Implies a proxy gateway received an invalid response from an upstream application node. 500 represents a direct application crash.

Specific API Error Types for 500

Associated HTTP Headers

No specific HTTP headers are explicitly linked to HTTP 500 in our directory yet.

Related HTTP Status Codes