matimh.eu

HTTP Status Codes

100

Continue

Send the body; the headers were fine (after Expect: 100-continue).

101

Switching Protocols

The server switches protocol, usually to WebSocket.

103

Early Hints

Preload hints (Link headers) before the real response.

200

OK

It worked; the body has the result.

201

Created

Something new was made; Location often points to it.

202

Accepted

Taken in, but processed later (queues, jobs).

203

Non-Authoritative Information

A proxy changed the response from the origin.

204

No Content

Done, nothing to send back (common for DELETE / PUT).

205

Reset Content

Done; the client should reset the form or view.

206

Partial Content

Only the requested byte range (video seeking, resumed downloads).

207

Multi-Status

WebDAV: several statuses in an XML body.

208

Already Reported

WebDAV: members already listed earlier.

226

IM Used

Delta encoding applied to the response.

300

Multiple Choices

Several versions; the client should pick one.

301

Moved Permanently

New URL forever; search engines move the ranking. Browsers may turn POST into GET.

302

Found

Temporary redirect. Browsers usually follow with GET.

303

See Other

Go fetch the result elsewhere with GET (after a form POST).

304

Not Modified

Your cached copy is still good (ETag / If-Modified-Since).

307

Temporary Redirect

Temporary, and the method and body stay the same.

308

Permanent Redirect

Permanent, and the method and body stay the same.

400

Bad Request

The request is malformed: bad JSON, missing field, wrong type.

401

Unauthorized

Not logged in, or the token is missing / expired. Send credentials.

402

Payment Required

Reserved; some APIs use it for exhausted plans.

403

Forbidden

Known who you are, but not allowed. Logging in again will not help.

404

Not Found

Nothing here - wrong URL, deleted, or hidden on purpose.

405

Method Not Allowed

The URL exists but not for this method; see the Allow header.

406

Not Acceptable

Cannot answer in a format your Accept header allows.

407

Proxy Authentication Required

The proxy between you and the server wants credentials.

408

Request Timeout

You took too long to send the request.

409

Conflict

Clashes with the current state: duplicate, version conflict.

410

Gone

Removed on purpose and not coming back.

411

Length Required

Send Content-Length.

412

Precondition Failed

If-Match / If-Unmodified-Since did not hold - someone changed it.

413

Content Too Large

The body is over the server's limit (nginx client_max_body_size).

414

URI Too Long

The URL is too long - move data into the body.

415

Unsupported Media Type

Wrong Content-Type for this endpoint.

416

Range Not Satisfiable

The requested byte range is outside the file.

417

Expectation Failed

The Expect header cannot be met.

418

I'm a teapot

An April Fools' joke from 1998 that stuck around.

421

Misdirected Request

This server is not set up for that host (HTTP/2 connection reuse).

422

Unprocessable Content

Well-formed, but the values fail validation.

423

Locked

WebDAV: the resource is locked.

424

Failed Dependency

WebDAV: an earlier request in the batch failed.

425

Too Early

Will not process a request that might be replayed (TLS early data).

426

Upgrade Required

Switch protocol (see Upgrade) to use this.

428

Precondition Required

Send If-Match so updates do not overwrite each other.

429

Too Many Requests

Rate limited; wait for Retry-After seconds.

431

Request Header Fields Too Large

Headers too big - often too many or too large cookies.

444

No Response

nginx

nginx closed the connection without answering (blocked request).

451

Unavailable For Legal Reasons

Blocked because of a legal demand.

494

Request Header Too Large

nginx

nginx: a single header line is too big.

495

SSL Certificate Error

nginx

nginx: the client certificate is invalid.

496

SSL Certificate Required

nginx

nginx: a client certificate was required.

497

HTTP Request Sent to HTTPS Port

nginx

nginx: plain HTTP sent to the TLS port.

499

Client Closed Request

nginx

nginx: the client hung up before the answer was ready.

500

Internal Server Error

The server crashed or threw; check its logs.

501

Not Implemented

The server does not support this method at all.

502

Bad Gateway

The proxy got a bad or no answer from the app behind it (app down?).

503

Service Unavailable

Overloaded or in maintenance; try later (Retry-After).

504

Gateway Timeout

The app behind the proxy did not answer in time.

505

HTTP Version Not Supported

The HTTP version is not supported.

506

Variant Also Negotiates

Content negotiation loop in the server's config.

507

Insufficient Storage

WebDAV: no space left to store it.

508

Loop Detected

WebDAV: an infinite loop while processing.

510

Not Extended

More extensions are needed to fulfil it.

511

Network Authentication Required

Log in to the network first (captive portal, hotel Wi-Fi).

520

Web Server Returned an Unknown Error

Cloudflare

Cloudflare: the origin answered with something empty or odd.

521

Web Server Is Down

Cloudflare

Cloudflare: the origin refused the connection - app or server down, or firewall.

522

Connection Timed Out

Cloudflare

Cloudflare: no TCP connection to the origin in time.

523

Origin Is Unreachable

Cloudflare

Cloudflare: cannot reach the origin (DNS or routing).

524

A Timeout Occurred

Cloudflare

Cloudflare: connected, but the origin took over 100 s to answer.

525

SSL Handshake Failed

Cloudflare

Cloudflare: TLS to the origin failed.

526

Invalid SSL Certificate

Cloudflare

Cloudflare (Full strict): the origin's certificate is not valid.

530

Origin DNS Error

Cloudflare

Cloudflare: often with a 1xxx error page - DNS or tunnel issue.