Free auditStart free
GuideError · HTTP status codes

HTTP 500 Internal Server Error

HTTP 500 means the server hit an unexpected condition and could not finish the request. See the causes, what visitors can try, and how owners trace and fix it.

4 min
read
4
sources
Oct 22, 2026
updated
Scaplet Editorial Team
author
The short answer

HTTP 500 Internal Server Error means the server encountered an unexpected condition that prevented it from fulfilling the request. It is a generic catch-all for server-side failures, so the fix is usually with the site owner or host. Visitors can retry later; owners should read the error log for the failing request and fix the code or configuration it points to.

  1. What a 500 means and who causes it
  2. How to get past a 500 as a visitor
  3. How to find and fix the cause as a site owner
  4. What it does to SEO
30-second check

Where does your site stand?

Four quick questions, then a straight answer.

1/4Have you checked your own site for this?
Summarize this page withChatGPTClaudePerplexityGoogleAI Mode
02How it works

How to get past a 500 as a visitor

  1. 01

    Reload once

    A reload costs nothing and rules out a one-off failure.

  2. 02

    Come back later

    MDN says 500s require investigation by server owners or administrators. There is nothing to fix on your side if other sites load normally.

  3. 03

    Tell the site if it keeps failing

    Send the URL and the time. The site owner needs both to find the matching log entry.

  4. 04

    Do not retry a payment or a form repeatedly

    The server may have completed part of the work before failing. Check for a confirmation email or account entry first.

03How it works

How to find and fix the cause as a site owner

RFC 9110 says a server SHOULD send a representation that explains the error and whether it is temporary or permanent. In production, keep that public message generic and put the detail in logs. Then work from the log entry for one failing request.
  1. 1

    Reproduce one failing request

    Note the URL, method, time and request ID if you have one. A curl -i against the URL shows the status and headers.

  2. 2

    Find the matching log entry

    Look in the application log and the web server error log for that time. A stack trace or a specific error message usually names the file or dependency.

  3. 3

    Check what changed

    Compare against the last deploy, configuration change, dependency update or traffic spike. Roll back if the timing matches.

  4. 4

    Check resources and dependencies

    Look at memory, disk, database connections and any third-party API the request calls.

  5. 5

    Fix, then retest the exact request

    Confirm the status changes to the one you intend, and watch the logs for new entries.

Node.js: log the cause, return a generic 500
import http from "node:http";

const server = http.createServer(async (req, res) => {
  try {
    await handle(req, res); // your application code
  } catch (err) {
    console.error(req.method, req.url, err); // detail goes to logs
    res.writeHead(500, { "Content-Type": "text/plain" });
    res.end("Something went wrong on our side.");
  }
});

A 500 that appears only when a proxy is in front may really be a gateway problem; compare 502 Bad Gateway and 503 Service Unavailable. Use 503, not 500, for planned maintenance, because it signals that the condition is temporary.

04Explained

What it does to SEO

Google says a 500 makes it decrease the crawl rate for the site, in proportion to the number of individual URLs returning a server error, and its indexing pipeline removes URLs that persistently return a server error. Content in a 5xx response is ignored. See 5xx server errors for how to find affected URLs and confirm recovery, and Google's documentation on how HTTP status codes affect its crawlers.
Sources · 4

Every fact, linked and dated.

Official docs first. The date is when we last opened each page.
  • rfc-editor.org
  • mozilla.org
  • cloudflare.com
  • google.com
  1. 01RFC 9110: HTTP Semanticsrfc-editor.org · checked 2026-10-25
  2. 02MDN: 500 Internal Server Errordeveloper.mozilla.org · checked 2026-10-25
  3. 03Cloudflare: Error 500developers.cloudflare.com · checked 2026-10-25
  4. 04How HTTP status codes affect Google's crawlersdevelopers.google.com · checked 2026-10-25
Questions

Asked a lot.

4 questions people ask next, answered from the sources on this page.

01What does the internal server error mean?

The server hit an unexpected condition and could not complete the request. It is a general server-side failure, not a problem with your browser or connection, and the cause is not stated in the response.

02What is the difference between HTTP 500 and 503?

A 500 is a generic failure from an unexpected condition. A 503 says the server is currently unable to handle the request because of a temporary overload or scheduled maintenance, and may include a Retry-After header. See 503 Service Unavailable.

03Can I fix a 500 error as a visitor?

No. MDN says 500 errors require investigation by server owners or administrators. You can reload or come back later, and report the URL and time to the site.

04How do I find the cause of a 500 on my site?

Reproduce one failing request, find its entry in the application and web server logs, and compare the time with your last deploy or configuration change. The stack trace or error message normally points to the cause.

Free · 2 minutes

Tools point. Agencies advise. This one ships.

Run the free audit, then approve the fixes. Every change can be undone.

Free, no card60 secondsNobody will call you
  • 46 fixes shipped without a ticket Brightpipe
  • 0→7 ChatGPT citations in six weeks Paylane