Miscellaneous Utilities

Status Code Info

Retrieves detailed information about HTTP status codes including description, category, and common use cases. Access via MCP in Cursor or Windsurf, or call GET /v1/misc/status-code with a code parameter. Returns structured data about any standard HTTP status code from 100-599, helping AI agents provide accurate web development guidance instead of approximate explanations.

API Endpoint

GET /v1/misc/status-code

Code Examples

curl "https://tinyfn.io/v1/misc/status-code" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/misc/status-code', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/misc/status-code',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's miscellaneous tools:

{
  "mcpServers": {
    "tinyfn-misc": {
      "url": "https://tinyfn.io/mcp/misc",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I get information about HTTP status code 418?

Call the endpoint with ?code=418 to get details about the "I'm a teapot" status, including its RFC specification and intended use case.

Can MCP tools in Claude Code lookup status codes during debugging?

Yes, the MCP tool provides instant access to status code meanings, categories (client error, server error, etc.), and typical scenarios where each code appears.

What information does the status code tool return?

Returns the code number, official phrase, detailed description, category classification, and common use cases in structured JSON format.

Does it support custom or non-standard HTTP status codes?

The tool covers standard HTTP status codes defined in RFCs. Custom codes outside the 100-599 range may not have detailed information available.

How is this better than memorizing status codes?

Provides consistent, accurate descriptions with context about when each code is appropriate, eliminating guesswork during API development and debugging.

Try Status Code Info Now

Get your free API key and start using Status Code Info in seconds.

Get Free API Key