HTTP Status Reference

Quick lookup of HTTP status codes and their meanings

1 credit
36 matches
1xx

Informational

(3)
100

Continue

The server received the request headers and the client should proceed.

101

Switching Protocols

Upgrading to a different protocol (e.g. WebSocket).

103

Early Hints

Preloads Link headers before the final response.

💡 Great for pushing fonts / critical CSS.

2xx

Success

(5)
200

OK

Standard success. The response body is meaningful.

💡 GET, HEAD — anything worked.

201

Created

Resource was created successfully.

💡 Return after POST /things.

202

Accepted

Accepted for processing but not completed yet.

💡 Async workflows.

204

No Content

Success, no body. Common for DELETE.

💡 Return for PUTs without a meaningful body.

206

Partial Content

Byte-range response (video streaming, resumable downloads).

3xx

Redirect

(6)
301

Moved Permanently

Permanent redirect, cached by search engines.

💡 Use only when the move is definitively final.

302

Found

Temporary redirect — caches expire quickly.

303

See Other

Redirect with a GET, typical after POST/Redirect/GET.

304

Not Modified

Cached resource is still fresh — no body.

💡 Pair with ETag / If-None-Match.

307

Temporary Redirect

Same as 302 but preserves the HTTP method.

308

Permanent Redirect

Same as 301 but preserves the method.

4xx

Client error

(15)
400

Bad Request

Malformed request — JSON error, missing field, etc.

401

Unauthorized

Auth is required and either missing or invalid.

💡 Expect a WWW-Authenticate header.

402

Payment Required

Reserved historically; used by some APIs for quota / billing errors.

💡 We use this for insufficient credits.

403

Forbidden

Authenticated but not allowed.

💡 Use when identity is known but role lacks permission.

404

Not Found

Resource does not exist.

405

Method Not Allowed

The resource exists but the method is wrong.

💡 Include Allow: header.

409

Conflict

Update conflicts with current state (e.g. optimistic lock failure).

💡 Great for unique-constraint violations.

410

Gone

Resource was here but is permanently removed.

413

Payload Too Large

Request body exceeds server limits.

415

Unsupported Media Type

Content-Type isn't supported by the endpoint.

418

I'm a teapot

RFC 2324 April Fools joke. Surprisingly still widely deployed.

422

Unprocessable Entity

Syntactically OK but semantically invalid (validation errors).

428

Precondition Required

Server requires conditional headers to prevent lost updates.

429

Too Many Requests

Rate limited — include Retry-After.

451

Unavailable For Legal Reasons

Blocked due to a legal demand (Fahrenheit 451 reference).

5xx

Server error

(7)
500

Internal Server Error

Generic server-side error catch-all.

501

Not Implemented

The method is not supported at all on this server.

502

Bad Gateway

Upstream server returned an invalid response.

503

Service Unavailable

Server overloaded or down for maintenance.

💡 Use Retry-After for scheduled downtime.

504

Gateway Timeout

Upstream server didn't reply in time.

507

Insufficient Storage

Server has no room to store the representation.

511

Network Authentication Required

Captive portal — auth needed before network access.