# What does the HTTP 500 status code mean?

> HTTP 500 Internal Server Error means the server encountered an unexpected condition that prevented it from fulfilling the request, under RFC 9110.

*Under RFC 9110, a client must treat an unrecognized 5xx code as a 500 and should treat a response with an invalid status code as a server error.*

- Type: Explainer
- Section: Tech
- By: Tech Desk
- Published: 2026-11-12T17:41:29-05:00
- Updated: 2026-11-12T17:41:29-05:00
- Checked: 2026-11-12T17:41:24-05:00
- URL: https://factsdesk.com/tech/what-does-the-http-500-status-code-mean/

## Key facts

- HTTP 500 Internal Server Error means the server encountered an unexpected condition that prevented it from fulfilling the request, under RFC 9110. Source: [RFC Editor (Internet Engineering Task Force)](https://www.rfc-editor.org/rfc/rfc9110.html). Confirmed 2026-11-12T17:40:55-05:00. Cite: https://factsdesk.com/tech/what-does-the-http-500-status-code-mean/#http-500-internal-server-error-means-the-server-encountered
- RFC 9110 says the 5xx class means the server is aware that it has erred or is incapable of performing the requested method. Source: [RFC Editor (Internet Engineering Task Force)](https://www.rfc-editor.org/rfc/rfc9110.html). Confirmed 2026-11-12T17:40:55-05:00. Cite: https://factsdesk.com/tech/what-does-the-http-500-status-code-mean/#rfc-9110-says-the-5xx-class-means-the-server-is-aware-that
- RFC 9110 says a client must treat an unrecognized status code as the x00 code of its class, so an unknown 5xx code is handled as a 500. Source: [RFC Editor (Internet Engineering Task Force)](https://www.rfc-editor.org/rfc/rfc9110.html). Confirmed 2026-11-12T17:40:55-05:00. Cite: https://factsdesk.com/tech/what-does-the-http-500-status-code-mean/#rfc-9110-says-a-client-must-treat-an-unrecognized-status
- The definition of 500 in RFC 7231, published in June 2014, uses the same sentence that RFC 9110 uses for the code. Source: [RFC Editor (Internet Engineering Task Force)](https://www.rfc-editor.org/rfc/rfc7231.html). Confirmed 2026-11-12T17:41:24-05:00. Cite: https://factsdesk.com/tech/what-does-the-http-500-status-code-mean/#the-definition-of-500-in-rfc-7231-published-in-june-2014
- The IANA HTTP Status Code Registry lists code 500 with the description Internal Server Error and the reference RFC 9110, Section 15.6.1. Source: [Internet Assigned Numbers Authority (IANA)](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml). Confirmed 2026-11-12T17:40:55-05:00. Cite: https://factsdesk.com/tech/what-does-the-http-500-status-code-mean/#the-iana-http-status-code-registry-lists-code-500-with-the

The HTTP 500 (Internal Server Error) status code means that the server encountered an unexpected condition that prevented it from fulfilling the request, according to [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html), the IETF standard that defines HTTP semantics. In the words of [Section 15.6.1 of RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-500-internal-server-error), "The 500 (Internal Server Error) status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the request."

## What the 5xx class means

[RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-server-error-5xx) says the 5xx (Server Error) class indicates that the server is aware that it has erred or is incapable of performing the requested method, and that these status codes apply to any request method. Its [list of classes](https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes) sums up 5xx as "The server failed to fulfill an apparently valid request", which separates it from the 4xx class, where the request itself contains bad syntax or cannot be fulfilled. The site also explains [400 Bad Request](/tech/what-does-the-http-400-status-code-mean/) and [404 Not Found](/tech/what-does-the-http-404-status-code-mean/), two codes in the 4xx class.

## How 500 compares with other 5xx codes

RFC 9110 defines six server error codes, and the [IANA registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) lists each with the section that defines it.

| Code | Name | What RFC 9110 says it means |
| --- | --- | --- |
| 500 | Internal Server Error | An unexpected condition prevented the server from fulfilling the request |
| 501 | Not Implemented | The server does not support the functionality required to fulfill the request |
| 502 | Bad Gateway | A gateway or proxy received an invalid response from an inbound server |
| 503 | Service Unavailable | The server cannot handle the request now because of a temporary overload or scheduled maintenance |
| 504 | Gateway Timeout | A gateway or proxy did not receive a timely response from an upstream server |
| 505 | HTTP Version Not Supported | The server does not support, or refuses to support, the major HTTP version of the request |

The meanings in the table are summarized from Sections [15.6.1](https://www.rfc-editor.org/rfc/rfc9110.html#name-500-internal-server-error) to [15.6.6](https://www.rfc-editor.org/rfc/rfc9110.html#name-505-http-version-not-suppor) of RFC 9110. The [IANA registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) also lists 506 Variant Also Negotiates (RFC 2295), 507 Insufficient Storage (RFC 4918), 508 Loop Detected (RFC 5842) and 511 Network Authentication Required (RFC 6585), marks 510 Not Extended as obsoleted, and shows 509 and 512 to 599 as unassigned.

## How 500 differs from 503

The 500 definition names no particular cause. A [503 (Service Unavailable)](https://www.rfc-editor.org/rfc/rfc9110.html#name-503-service-unavailable) response is for a temporary overload or scheduled maintenance that will likely be alleviated after some delay, and the server may send a Retry-After header field with it to suggest how long the client should wait before retrying. The same section notes that a server does not have to use 503 when it becomes overloaded, and that some servers might simply refuse the connection.

## Unknown and invalid codes are read as server errors

[RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-status-codes) says a client must understand the class of any status code from its first digit and treat an unrecognized code as equivalent to the x00 code of that class, so a client that receives an unregistered 5xx code handles it as a 500. The same section says all valid status codes are within 100 to 599, and that a client receiving a response with an invalid status code should process it as if it had a 5xx (Server Error) status code.

## What a server should send with a 500

For all 5xx codes, [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-server-error-5xx) says that, except when responding to a HEAD request, the server should send a representation containing an explanation of the error situation and whether it is a temporary or permanent condition. It also says a user agent should display any included representation to the user.

## Can a 500 be cached?

Not by heuristic expiration. The [overview of status codes in RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html#name-overview-of-status-codes) gives the heuristically cacheable codes in that specification, by way of example, as 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414 and 501, and says all other status codes are not heuristically cacheable. That puts 500 outside the list, while 501 is inside it.

## What changed and when

[RFC 7231](https://www.rfc-editor.org/rfc/rfc7231.html#section-6.6.1), published in June 2014, defined 500 in Section 6.6.1 with the same sentence RFC 9110 uses today. [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html) was published in June 2022 on the Standards Track, carries the number STD 97 and obsoletes RFC 7231, as its header shows; the definition of 500 moved to Section 15.6.1 with its wording unchanged. The [IANA registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml) now points code 500 to RFC 9110, Section 15.6.1, and shows its last update as September 15, 2025.

## Sources

1. [RFC 9110: HTTP Semantics](https://www.rfc-editor.org/rfc/rfc9110.html), RFC Editor (Internet Engineering Task Force), 2022-06 (primary source)
2. [Hypertext Transfer Protocol (HTTP) Status Code Registry](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml), Internet Assigned Numbers Authority (IANA), 2025-09-15 (primary source)
3. [RFC 7231: Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content](https://www.rfc-editor.org/rfc/rfc7231.html), RFC Editor (Internet Engineering Task Force), 2014-06 (primary source)

## Asked next

- [What does the HTTP 502 status code mean?](https://factsdesk.com/tech/what-does-the-http-502-status-code-mean/): HTTP 502 Bad Gateway means a server acting as a gateway or proxy received an invalid response from an inbound server, under RFC 9110.
- [What does the HTTP 503 status code mean?](https://factsdesk.com/tech/what-does-the-http-503-status-code-mean/): HTTP 503 Service Unavailable means the server cannot handle the request now due to a temporary overload or scheduled maintenance, under RFC 9110.
- [What does the HTTP 504 status code mean?](https://factsdesk.com/tech/what-does-the-http-504-status-code-mean/): HTTP 504 Gateway Timeout means a server acting as a gateway or proxy did not get a timely response from an upstream server, under RFC 9110.
- [What does the HTTP 404 status code mean?](https://factsdesk.com/tech/what-does-the-http-404-status-code-mean/): HTTP 404 Not Found means the server did not find a current representation for the target resource or is not willing to disclose that one exists.
- [What does the HTTP 400 status code mean?](https://factsdesk.com/tech/what-does-the-http-400-status-code-mean/): HTTP 400 Bad Request means the server cannot or will not process a request because of something it perceives to be a client error, under RFC 9110.
- [What does the HTTP 403 status code mean?](https://factsdesk.com/tech/what-does-the-http-403-status-code-mean/): HTTP 403 Forbidden means the server understood the request but refuses to fulfill it, as defined in RFC 9110, the HTTP Semantics standard.
