handy.moe

All tools / Debug tools / Status codes

HTTP 500 Internal Server Error

The server hit an unexpected problem and can't say more. It's the generic 'the server's code broke' response.

This page runs in your browser and makes no requests.

500 Internal Server Error

The server hit an unexpected problem and can't say more. It's the generic 'the server's code broke' response.

Common causes

An unhandled exception, a bug, a misconfigured server, a broken database connection, a bad deploy, a permissions problem on files.

What to do

It's the server's fault, not the request's. Read the server's error log: that is where the real message is. As a client, retry later and report it.

Class: 5xx Server error · Defined in RFC 9110 §15.6.1

How to use it

  1. Look at the response in your browser's Network tab, or run curl -i URL to see the status line and headers.
  2. Read the response body: many servers explain the exact reason there.
  3. Fix the cause above and send the request again.

Questions

Is 500 an error?

Yes: it is a server error. The request was fine; the server (or something behind it) failed.

Should I retry a 500?

Sometimes: try again once or twice with a short delay, but if the same request keeps failing it's a bug on the server.

Where can I see the 500 in my browser?

Open the developer tools (F12 or Cmd+Option+I), go to the Network tab, reload, and look at the Status column. Click the request and open the Response and Headers tabs for the details.