HTTP 500 Internal Server Error

The server hit an unexpected condition and could not complete the request.

Updated

500
Internal Server Error
5xx Server error
Class
RFC 9110 §15.6.1
Defined in

What does HTTP 500 mean?

The server hit an unexpected condition and could not complete the request. The generic “something broke” error. It is never the client’s fault; the details are in the server’s error log, not in the response.

5xx Server error: The request looked valid, but the server failed to fulfil it. The fix is on the server side.

Common causes of a 500 error

  • An unhandled exception in application code.
  • Syntax error in .htaccess or a misconfigured server module.
  • Database connection failures.
  • Wrong file permissions on scripts (e.g. PHP files with execute-only or overly open permissions under suEXEC).

How to fix 500 Internal Server Error

  • Check the application and web server error logs.
  • Roll back the latest deployment or configuration change.
  • Validate .htaccess and server configs after editing.

500 and SEO

Short outages are tolerated, but persistent 500s cause Google to crawl less and eventually drop the pages. Monitor for them.

Example response

HTTP/1.1 500 Internal Server Error

Related status codes

Check which status code a URL returns with the HTTP header checker.

All HTTP status codesSearch the full list of status codes from 100 to 599 with their meanings and SEO impact.
Open the full list

Frequently asked questions

What does status code 500 mean?
500 Internal Server Error: The server hit an unexpected condition and could not complete the request.
How do I fix a 500 error?
Check the application and web server error logs. Roll back the latest deployment or configuration change.
Does 500 affect SEO?
Short outages are tolerated, but persistent 500s cause Google to crawl less and eventually drop the pages. Monitor for them.