Cheatsheets

HTTP Status Codes Cheatsheet

Use this HTTP status code cheatsheet to quickly understand common API and web responses, from success to redirects and errors.

Quick reference

2xx success

200 OKRequest succeeded
201 CreatedResource created
204 No ContentSuccess with no response body
206 Partial ContentPartial response, often for ranges

3xx redirects

301 Moved PermanentlyPermanent redirect
302 FoundTemporary redirect
304 Not ModifiedUse cached response
307 Temporary RedirectTemporary redirect preserving method

4xx and 5xx

400 Bad RequestInvalid request
401 UnauthorizedAuthentication needed
404 Not FoundResource missing
500 Internal Server ErrorServer failed unexpectedly

More client responses

403 ForbiddenKnown client lacks permission
405 Method Not AllowedMethod unsupported for the resource
409 ConflictRequest conflicts with current state
422 Unprocessable ContentSyntax accepted but instructions cannot be processed
429 Too Many RequestsRate limit exceeded

More server responses

502 Bad GatewayInvalid upstream response
503 Service UnavailableTemporarily unavailable
504 Gateway TimeoutUpstream response timed out

Examples

CodeAPI response handling
if (response.status === 404) {
  showMissingState();
} else if (!response.ok) {
  showErrorState();
}
CodeRetry only appropriate failures
if (response.status === 429 || response.status === 503) {
  const retryAfter = response.headers.get("Retry-After");
  scheduleRetry(retryAfter);
}

HTTP Status FAQ

What is included in the HTTP Status cheatsheet?

HTTP Status Codes Cheatsheet includes quick reference sections, practical examples, common mistakes, tips and links to related DevKitYard tools.

Is the HTTP Status cheatsheet interactive?

This cheatsheet is a static quick reference focused on concise commands, syntax and examples.

When should I use this HTTP Status reference?

Use it when you need to recall syntax, compare common patterns or avoid mistakes without opening a long tutorial.

What should I use after reading this cheatsheet?

Use related DevKitYard tools such as API Request Builder, API Header Generator when you need to format, validate, generate or inspect real output.