api / status codes

REST & HTTP Services

HTTP Status Codes Simulator & Reference

A comprehensive interactive test suite for all 5 HTTP status code families (1XX, 2XX, 3XX, 4XX, 5XX). Practice network interception, response code assertions, redirect tracking, and client/server error state handling with live API endpoints.

200 OK 2XX SUCCESS
id="active-code"

Standard response for successful HTTP requests.

ENDPOINT:
โ†— Open Raw JSON
LIVE HTTP RESPONSE โ€”
1XX

1XX Informational

3 Codes
100 1XX
Continue Client should continue with its request.
101 1XX
Switching Protocols Requester asked server to switch protocols.
102 1XX
Processing Server has received and is processing request.
2XX

2XX Success

10 Codes
200 2XX
OK Standard response for successful HTTP requests.
201 2XX
Created Request fulfilled; new resource created.
202 2XX
Accepted Request accepted for processing, not yet completed.
203 2XX
Non-authoritative Information Returned meta-information from transforming proxy.
204 2XX
No Content Server successfully processed request; returns no content.
205 2XX
Reset Content Requester should reset document view.
206 2XX
Partial Content Delivering only part of resource due to Range header.
207 2XX
Multi-Status WebDAV: message body contains multiple status codes.
208 2XX
Already Reported WebDAV: members of binding already enumerated.
226 2XX
IM Used Delta encoding: instance-manipulations result returned.
3XX

3XX Redirection

8 Codes
300 3XX
Multiple Choices Multiple options from which client may choose.
301 3XX
Moved Permanently Resource permanently moved to new URI.
302 3XX
Found Resource temporarily resides under different URI.
303 3XX
See Other Response can be found under another URI via GET.
304 3XX
Not Modified Cached version is valid; no body returned.
305 3XX
Use Proxy Requested resource accessible only through proxy.
307 3XX
Temporary Redirect Repeat request with same method to new URI.
308 3XX
Permanent Redirect Repeat request with same method to permanent URI.
4XX

4XX Client Error

30 Codes
400 4XX
Bad Request Server cannot process request due to client syntax error.
401 4XX
Unauthorized Authentication required or has failed.
402 4XX
Payment Required Reserved for future digital payment systems.
403 4XX
Forbidden Authenticated client does not have permission.
404 4XX
Not Found Requested resource could not be found.
405 4XX
Method Not Allowed HTTP method not supported for target resource.
406 4XX
Not Acceptable Cannot generate content matching Accept headers.
407 4XX
Proxy Authentication Required Client must authenticate through proxy first.
408 4XX
Request Timeout Server timed out waiting for the client request.
409 4XX
Conflict Request conflict with current state of resource.
410 4XX
Gone Resource permanently removed and will not return.
411 4XX
Length Required Content-Length header required by resource.
412 4XX
Precondition Failed Precondition header evaluated to false on server.
413 4XX
Payload Too Large Request payload exceeds server processing limits.
414 4XX
Request-URI Too Long URI provided is too long for server to interpret.
415 4XX
Unsupported Media Type Payload format or Content-Type not supported.
416 4XX
Requested Range Not Satisfiable Range specified in Range header cannot be fulfilled.
417 4XX
Expectation Failed Server cannot meet requirements of Expect header.
418 4XX
I'm a teapot RFC 2324 / RFC 7168: Hyper Text Coffee Pot Control Protocol.
421 4XX
Misdirected Request Request routed to server unable to produce response.
422 4XX
Unprocessable Entity WebDAV: Semantic validation errors in request.
423 4XX
Locked WebDAV: Source or destination resource is locked.
424 4XX
Failed Dependency WebDAV: Request failed due to failure of previous request.
426 4XX
Upgrade Required Client must upgrade to a different protocol.
428 4XX
Precondition Required Origin server requires conditional request headers.
429 4XX
Too Many Requests Rate limiting: user has sent too many requests.
431 4XX
Request Header Fields Too Large Individual header or all headers exceed size limit.
444 4XX
Connection Closed Without Response Nginx: server closes connection without headers.
451 4XX
Unavailable For Legal Reasons Censorship / legal demand blocked access to resource.
499 4XX
Client Closed Request Nginx: client closed connection while processing.
5XX

5XX Server Error

12 Codes
500 5XX
Internal Server Error Generic error: unexpected condition on server.
501 5XX
Not Implemented Server lacks ability to fulfill the request method.
502 5XX
Bad Gateway Invalid response received from inbound gateway server.
503 5XX
Service Unavailable Server overloaded or down for maintenance.
504 5XX
Gateway Timeout Gateway server timed out waiting for upstream response.
505 5XX
HTTP Version Not Supported HTTP protocol version in request not supported.
506 5XX
Variant Also Negotiates Transparent content negotiation resulted in circular reference.
507 5XX
Insufficient Storage WebDAV: server unable to store representation needed.
508 5XX
Loop Detected WebDAV: infinite loop encountered during operation.
510 5XX
Not Extended Further extensions to request required for fulfillment.
511 5XX
Network Authentication Required Client needs to authenticate to gain network access.
599 5XX
Network Connect Timeout Error Network connection timed out in proxy downstream.

Automation Practice

#assertion-code

Use these code patterns in your test suite to assert specific HTTP status codes, verify error messages, and handle redirects without throwing uncaught exceptions.

Automation code snippets
Python (requests)
import requests

# 1. Assert custom status code simulation
res = requests.get("https://bugmukti.com/api/v1/status/429")
assert res.status_code == 429
data = res.json()
assert data["status"] == "Too Many Requests"

# 2. Assert redirection without auto-following
res_redir = requests.get("https://bugmukti.com/api/v1/status/301", allow_redirects=False)
assert res_redir.status_code == 301

# 3. Assert server error simulation
res_err = requests.get("https://bugmukti.com/api/v1/status/503")
assert res_err.status_code == 503
TypeScript (Playwright API)
import { test, expect } from '@playwright/test';

// 1. Assert custom status code simulation
const res = await request.get('https://bugmukti.com/api/v1/status/429');
expect(res.status()).toBe(429);
const body = await res.json();
expect(body.status).toBe('Too Many Requests');

// 2. Assert redirection without auto-following
const resRedir = await request.get('https://bugmukti.com/api/v1/status/301', {
  maxRedirects: 0
});
expect(resRedir.status()).toBe(301);

// 3. Assert server error simulation
const resErr = await request.get('https://bugmukti.com/api/v1/status/503');
expect(resErr.status()).toBe(503);