DEV Community

davinceleecode
davinceleecode Subscriber

Posted on

2 1 1 2 1

HTTP Status Codes Cheat Sheet πŸ“

1xx - Informational

  • Request received, continuing process.
  • Example: 100 Continue.

2xx - Success

  • The request was successfully received, understood, and accepted.
  • Common examples:
    • 200 OK β€” Standard response for successful requests (GET, PUT, PATCH, DELETE).
    • 201 Created β€” The request was successful and a new resource was created (POST).

3xx - Redirection

  • Further action needs to be taken to complete the request.
  • Example:
    • 301 Moved Permanently β€” Resource has been permanently moved to a new URL.

4xx - Client Error

  • The request contains bad syntax or cannot be fulfilled.
  • Common examples:
    • 400 Bad Request β€” The server could not understand the request.
    • 401 Unauthorized β€” Authentication is needed or failed.
    • 403 Forbidden β€” Server understood the request but refuses to authorize it.
    • 404 Not Found β€” The server cannot find the requested resource.

5xx - Server Error

  • The server failed to fulfill a valid request.
  • Common examples:
    • 500 Internal Server Error β€” The server encountered an unexpected condition.
    • 502 Bad Gateway β€” Server received an invalid response from an upstream server.
    • 503 Service Unavailable β€” The server is currently unavailable (overloaded or down for maintenance).

Notes:

  • 2xx means "successful operation."
  • 4xx errors are the client's fault (bad input, missing authentication, etc.).
  • 5xx errors are the server's fault (server crash, bug, or overload).

If you found this helpful, consider supporting my work at β˜• Buy Me a Coffee.

ACI image

ACI.dev: The Only MCP Server Your AI Agents Need

ACI.dev’s open-source tool-use platform and Unified MCP Server turns 600+ functions into two simple MCP tools on one serverβ€”search and execute. Comes with multi-tenant auth and natural-language permission scopes. 100% open-source under Apache 2.0.

Star our GitHub!

Top comments (0)

ACI image

ACI.dev: Best Open-Source Composio Alternative (AI Agent Tooling)

100% open-source tool-use platform (backend, dev portal, integration library, SDK/MCP) that connects your AI agents to 600+ tools with multi-tenant auth, granular permissions, and access through direct function calling or a unified MCP server.

Star our GitHub!