HTTP Status Codes / 5xx HTTP Status Codes / HTTP 500

500 Internal Server Error

This is an educational reference page about HTTP 500 Internal Server Error. The page itself is served as 200 OK so it can be indexed as HTTP documentation.

A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.

What it means

HTTP 500 means the server hit an unexpected error and could not complete the request.

Common causes

How to fix it

Example response

HTTP/1.1 500 Internal Server Error
Content-Type: application/json

{"error":"Internal server error"}

Developer notes

500 is a fallback server error. Prefer a more specific 5xx status when the failure mode is known.

Related comparisons

5xx server error – the server failed to fulfill an apparently valid request


HTTP status code lookup
By Ping Now, a website/API/service uptime monitor
Data from Wikipedia