HTTP Status Lookup

HTTP Status Lookup API

Development

Free HTTP status code lookup tool. Search, understand, and debug API responses with comprehensive status code meanings.

Authentication

All API requests require a valid API key passed in the Authorization header as a Bearer token.

Rate Limit

120 requests per minute

Endpoints

2 endpoints available

Overview

Look up HTTP status codes (1xx to 5xx) with their title, description, category and the RFC that defines them. Results are returned inside a data object.

Two ways to call it

  • GET with ?code=404 returns that one status as data. An unknown code returns 404.
  • POST (or GET without code) takes the optional filters code, search and category (as JSON on POST, as query parameters on GET) and returns data.results, data.total and data.categories. With no filters you get every code. A POST with an unknown code returns an empty list, not a 404.

Notes

  • Filters combine: search and category together return codes that match both.
  • search is matched against the code number, title and description.

Endpoints

GET
https://opentools.ca/api/v1/tools/http-status-lookup
Look up one status code with ?code=404, or filter with ?search= and ?category=. With no query parameters, returns every code.

Query Parameters

ParameterTypeRequiredDescription
code
number
OptionalExact status code, e.g. 404.
search
string
OptionalCase-insensitive text matched against the code, title and description (max 200 characters).
category
string
Enum: Informational, Success, Redirection, Client Error, Server Error
OptionalOnly return codes in this class.

Response Example

{
  "success": true,
  "data": {
    "code": 404,
    "title": "Not Found",
    "description": "The requested resource could not be found but may be available in the future.",
    "reference": "RFC9110, Section 15.5.5",
    "category": "Client Error"
  }
}

Error Codes

400
Invalid request. Validation problems are listed in details.
401
Missing or invalid API key
403
API key is deactivated or expired, or this IP address is not allowed for the key
404
GET with code: no status code with that number
429
Rate limit exceeded (120 requests per minute per key)
500
Internal server error
POST
https://opentools.ca/api/v1/tools/http-status-lookup
Search and filter status codes. Send an empty body to get every code.

Request Body

Content-Type: application/json

ParameterTypeRequiredDescription
code
number
OptionalExact status code, e.g. 404.
search
string
OptionalCase-insensitive text matched against the code, title and description (max 200 characters).
category
string
Enum: Informational, Success, Redirection, Client Error, Server Error
OptionalOnly return codes in this class.

Response Example

{
  "success": true,
  "data": {
    "results": [
      {
        "code": 408,
        "title": "Request Timeout",
        "description": "The server timed out waiting for the request.",
        "reference": "RFC9110, Section 15.5.9",
        "category": "Client Error"
      },
      {
        "code": 504,
        "title": "Gateway Timeout",
        "description": "The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.",
        "reference": "RFC9110, Section 15.6.5",
        "category": "Server Error"
      }
    ],
    "total": 2,
    "categories": {
      "1xx": "Informational - Request received, continuing process",
      "2xx": "Success - The action was successfully received, understood, and accepted",
      "3xx": "Redirection - Further action must be taken in order to complete the request",
      "4xx": "Client Error - The request contains bad syntax or cannot be fulfilled",
      "5xx": "Server Error - The server failed to fulfill an apparently valid request"
    }
  }
}

Error Codes

400
Invalid request. Validation problems are listed in details.
401
Missing or invalid API key
403
API key is deactivated or expired, or this IP address is not allowed for the key
429
Rate limit exceeded (120 requests per minute per key)
500
Internal server error

Code Examples

# One status code
curl "https://opentools.ca/api/v1/tools/http-status-lookup?code=404"   -H "Authorization: Bearer YOUR_API_KEY"

# Search
curl -X POST https://opentools.ca/api/v1/tools/http-status-lookup   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"search": "timeout"}'

# Every 4xx code
curl -X POST https://opentools.ca/api/v1/tools/http-status-lookup   -H "Authorization: Bearer YOUR_API_KEY"   -H "Content-Type: application/json"   -d '{"category": "Client Error"}'

Ready to get started?

Create an API key to start using the HTTP Status Lookup API.

Rather use it in your browser? Open the HTTP Status Lookup