search
format_align_left
JSON Formatter CSS Formatter HTML Formatter JavaScript Formatter XML Formatter SQL Formatter Exception Formatter Markdown Preview & HTML to Markdown
data_object
JSON to Excel/CSV JSON to TypeScript, C#, Go, Java, Kotlin, Python & Dart JSON ⇄ YAML / TOML Converter JSON Diff – Compare Two JSON JSON Viewer & JSONPath Tester
table_chart
Excel/CSV to JSON Excel/CSV to SQL Excel/CSV to HTML
description
Compare text Text to Hex Text to Base64 Case Converter Regex Tester Vietnamese Accent Remover & Slug Generator Number to Words Word Counter Line Tools: Remove Duplicates, Sort Lines Lorem Ipsum Generator
auto_awesome
Fix JSON from ChatGPT, Claude & Gemini Token Counter & AI API Cost Calculator ChatGPT Markdown to Word & Google Docs PDF, Word, Excel to Markdown
image
Convert Image Image to Base64 Converter Image Compressor Resize & Crop Image Favicon Generator Color Palette from Image EXIF Viewer & Remover
qr_code_2
QR Code Generator QR Code Scanner VietQR Bank Transfer QR Generator Wi-Fi QR Code Generator vCard QR Code Generator (Business Card) Barcode Generator (EAN-13, Code 128, Code 39)
lock
Convert Token Convert Hash Generate Password HMAC Generator (SHA-256, SHA-512) AES Encrypt / Decrypt Online Bcrypt Hash Generator & Checker SSH Key Generator (Ed25519 / RSA / ECDSA)
schedule
Convert datetime Timezone Info Vietnamese Lunar Calendar Converter Age Calculator Date Calculator Cron Expression Parser Countdown Timer
payments
Gross to Net Salary Calculator (Vietnam 2026) Vietnam Personal Income Tax Calculator (2026) Loan Calculator – Monthly Payment & Schedule Savings Interest Calculator (Term Deposit) VAT Calculator – Add or Remove VAT
link
Encode and Decode URLs Shorten URL URL Parser & UTM Builder HTTP Header Checker
storage
Statistics Parser Statistics Compare SQL INSERT to JSON Converter SQL Table to C# / TypeScript / Java / Python / Go / Kotlin Class
travel_explore
Create Sitemap robots.txt Generator Meta Tag Generator Open Graph Preview AI readiness checker (GEO)
terminal
Number Base Converter UUID / ULID / NanoID Generator Chmod Calculator HTTP Status Codes
palette
Color Picker
help_outline
About UsPrivacy PolicyTerms of ServiceContact
THUTOOL
search

HTTP Status Codes

‹ All HTTP status codes

500 Internal Server Error

Generic server error: something crashed on the server.

Common causes

  • An unhandled error in server code (exception, null value)
  • Misconfiguration, missing environment variables, database connection errors

How to fix

  • Check the application / server logs at the time of the error
  • Reproduce with the same data; catch errors and return a proper 4xx when the input is at fault

Detailed reference (MDN) ↗RFC 9110 §15.6.1 ↗

Which code should I use?

  • 500 / 503: 500: an unexpected error in the code. 503: temporarily overloaded or under maintenance; add Retry-After and Google will come back later instead of dropping the page.

Other 5xx codes

  • 501 Not Implemented
  • 502 Bad Gateway
  • 503 Service Unavailable
  • 504 Gateway Timeout
  • 511 Network Authentication Required
  • 520 Web Server Returned an Unknown Error
  • 521 Web Server Is Down
  • 522 Connection Timed Out
  • 523 Origin Is Unreachable
  • 524 A Timeout Occurred
  • 525 SSL Handshake Failed
  • 526 Invalid SSL Certificate
  • 527 Railgun Error

How to look up an HTTP status code

This searchable list of HTTP status codes explains every code from 1xx to 5xx in one short line, including 200, 301, 404, 429, 500 and 502, with a link to the RFC that defines it. It also covers non-standard codes from nginx (444, 499) and Cloudflare (520–527). Results appear as you type.

  1. Type a code (404), the start of a code (50), a class (3xx) or a keyword (redirect, timeout) into the search box.
  2. Or click a class button such as 4xx · Client error. All shows every class again.
  3. Tick Show rarely used codes (WebDAV, deprecated) to include codes like 418 or 507.
  4. Click a code to copy it with its name, e.g. 404 Not Found. Details opens its causes and fixes, and the RFC link opens the official definition.

Example

Typing timeout finds 408 Request Timeout and 504 Gateway Timeout. Typing 50 lists 500 Internal Server Error to 504 Gateway Timeout.

The five classes

1xx informational, 2xx success, 3xx redirection, 4xx client errors (the request is wrong), 5xx server errors (the server failed).

FAQ

401 or 403?
401 means you are not logged in or the token is invalid. 403 means you are logged in but not allowed.

301 or 302?
Use 301 (or 308) for a permanent move so search engines transfer the ranking. Use 302 (or 307) for a temporary one.

What causes 502 and 504?
A proxy such as nginx or Cloudflare could not get a valid (502) or timely (504) answer from your application.

What does 429 mean?
Too many requests in a short time. Wait for the time in the Retry-After header, then try again.

What are 499 and 520–527?
They are marked Non-standard. 444 and 499 appear in nginx logs (no response sent, client closed the connection). 520–527 come from Cloudflare when it cannot reach or trust your origin server. The Which code should I use? table compares close pairs such as 301/308 and 400/422.

About UsPrivacy PolicyTerms of ServiceContact
@Made by THUTOOL