🔢
🐛

Look Up Error Codes Quickly

When your app returns a confusing HTTP error, look up what it actually means.

មិនចាំបាច់ចូលគណនី

34 status codes

100

Continue

The server has received the request headers and the client should proceed with the body.

Used for requests with Expect: 100-continue. The server acknowledges that it's willing to receive the body before the client sends it. Rarely seen in modern web apps.

101

Switching Protocols

The server is switching protocols as requested by the client.

Most commonly used for WebSocket upgrades — the client requests Upgrade: websocket and the server responds 101 to switch.

200

OK

The request succeeded.

The standard success response. The meaning depends on the HTTP method: GET → resource returned, POST/PUT → action completed.

201

Created

A new resource was successfully created.

Common after a POST. The response should include a Location header pointing to the new resource's URL.

202

Accepted

The request was accepted for processing, but processing is not complete.

For async operations — the server is queuing the work. The client should poll a status endpoint or check back later.

204

No Content

The request succeeded but there is no response body.

Often used for DELETE operations or PUT updates that don't need to return a body. The client should not navigate away from the current page.

206

Partial Content

The server delivered only part of the resource.

Response to a Range request. Used by video players and download managers to resume interrupted downloads or stream large files.

301

Moved Permanently

The resource has permanently moved to a new URL.

Use for permanent URL changes — search engines will update their index. SEO authority transfers to the new URL.

302

Found (Temporary Redirect)

The resource is temporarily at a different URL.

Indicates the redirect is not permanent. Caching is less aggressive than 301. Use for things like "login required, redirecting to /login".

303

See Other

Redirect to a different URL using GET.

Used after POST submissions — the response says "your POST worked, see this GET URL for the result". Browsers always GET the new URL.

304

Not Modified

The cached version is still valid; use it.

Response to a conditional request (with If-None-Match or If-Modified-Since headers). Saves bandwidth — no body is returned.

307

Temporary Redirect

Like 302 but preserves the original HTTP method.

If the original was POST, the redirect also uses POST. Modern alternative to 302 when method preservation matters.

308

Permanent Redirect

Like 301 but preserves the original HTTP method.

Modern replacement for 301 when you want POST requests to remain POST after the redirect.

400

Bad Request

The server couldn't understand the request due to malformed syntax.

Common causes: malformed JSON in body, invalid query parameters, or missing required fields. Check the request body and headers.

401

Unauthorized

Authentication is required and has not been provided.

The client must include authentication credentials (Authorization header, cookie, token). "Unauthorized" is a misnomer — it really means "unauthenticated".

402

Payment Required

Reserved for future use — sometimes used for paid API tiers.

Originally intended for digital payments. Modern usage: APIs sometimes return 402 when a user has exceeded their paid quota.

403

Forbidden

The client is authenticated but doesn't have permission.

Different from 401 — the user IS logged in, but their account doesn't have permission for this resource. Check role/permissions logic.

404

Not Found

The requested resource doesn't exist.

Either the URL is wrong, the resource was deleted, or it never existed. Servers sometimes return 404 to hide that a 403 would be more accurate.

405

Method Not Allowed

The HTTP method used is not allowed for this resource.

For example, a GET request to an endpoint that only accepts POST. The response should include an Allow header listing valid methods.

408

Request Timeout

The server timed out waiting for the request.

The client took too long to send the request body or kept the connection idle. Try the request again.

409

Conflict

The request conflicts with the current state of the resource.

Typically returned for concurrent edit conflicts or duplicate resource creation (e.g., creating a user with an email that already exists).

410

Gone

The resource was deleted and won't come back.

Stronger than 404 — the server explicitly knows the resource USED to exist but has been permanently removed. Search engines will deindex.

413

Payload Too Large

The request body exceeds the server's size limit.

Common when uploading large files. Server config (nginx, apache) sets a max body size. Check the server's configuration.

415

Unsupported Media Type

The server can't handle the Content-Type sent.

For example, sending application/xml to a server that only accepts application/json. Set the Content-Type header correctly.

418

I'm a Teapot

The server refuses to brew coffee because it's a teapot.

An April Fool's joke from 1998 (RFC 2324). Some real APIs use it for jokes or to mark deprecated endpoints. Not for production use.

422

Unprocessable Content

The request was syntactically valid but semantically wrong.

For example, JSON parsed correctly but a required field was missing, or a field value was out of range. Common in REST API validation responses.

429

Too Many Requests

The client is being rate-limited.

Slow down. The response should include a Retry-After header indicating when to try again. Common with APIs that have request quotas.

500

Internal Server Error

The server encountered an unexpected condition.

A generic catch-all for server-side errors. Check server logs for the actual cause: unhandled exception, database error, etc.

501

Not Implemented

The server doesn't support the functionality requested.

For example, the server doesn't recognize the HTTP method. Rare in practice — more often you'll see 405.

502

Bad Gateway

The server, acting as a gateway, got a bad response from an upstream server.

Common in microservice architectures. Your load balancer or reverse proxy got a malformed response from the backend service.

503

Service Unavailable

The server is temporarily unable to handle the request.

Either down for maintenance or overloaded. The response should include a Retry-After header. Often returned during deployments.

504

Gateway Timeout

The gateway server timed out waiting for an upstream response.

The backend service didn't respond fast enough. Check upstream service health and timeout configurations.

507

Insufficient Storage

The server is out of disk space.

WebDAV-specific in origin but sometimes used by general servers. Means the server can't save the request because of storage constraints.

511

Network Authentication Required

The client must authenticate to gain network access.

Used by captive portals (hotel/airport WiFi) to indicate the user must log in to the network before accessing external sites.

Error Debugging tips

🐛

For 502 vs 504 confusion — the reference explains "bad gateway" vs "gateway timeout" with concrete examples.

💡

For 409 (Conflict), the reference clarifies when it's appropriate vs when 400 or 422 fit better.

🎯

Search by code number or by name — quick lookup during incident response.

វាដំណើរការដោយរបៀបណា

1
បញ្ចូល
Enter your data into the tool above. Everything stays local to your browser.
2
ដំណើរការ
The tool processes your data instantly in your browser using JavaScript. No server, no waiting.
3
ទាញយក
Get your result instantly. Nothing is stored after you leave the page — complete privacy.

ហេតុអ្វីត្រូវប្រើរបស់យើង?

ឥតគិតថ្លៃទាំងស្រុង — គ្មានថ្លៃដែលលាក់ ឡើយ
មិនចាំបាច់មានគណនី អ៊ីមែល ឬចូលគណនី
ឯកសារមិនដែលចេញពីឧបករណ៍របស់អ្នក
គ្មានដែនកំណត់ទំហំឯកសារ
គ្មានស្នាមមាតិការនៅលើលទ្ធផលណាមួយ

Also check out…

សំណួរដែលសួរជាញឹកញាប់