API Error Poem
The API Error Poem API translates HTTP status codes into haiku. 21 common codes (200, 301, 401, 404, 418, 429, 500, 503, etc.) have hand-tuned three-line poems. Other codes get a fallback. Each response includes the haiku lines, syllable counts, and the canonical status name.
Try It — No Seriously
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
status_code |
number |
Required | — | HTTP status code (100-599). |
Examples
curl "https://api.stupidapis.com/api-error-poem/poem?status_code=404"
import requests
response = requests.get(
"https://api.stupidapis.com/api-error-poem/poem",
params={"status_code": 404}
)
print(response.json())
const response = await fetch( "https://api.stupidapis.com/api-error-poem/poem?status_code=404" ); const data = await response.json(); console.log(data);
Response Schema
| Field | Type | Description |
|---|---|---|
status_code |
number |
The status code |
status_name |
string |
Canonical name |
haiku |
string[] |
Three lines |
syllable_count |
number[] |
Always [5, 7, 5] |
meter_warning conditional |
string |
Set when fallback was used |
Example Response
{
"status_code": 404,
"status_name": "Not Found",
"haiku": [
"The page is not here",
"It was never here at all",
"You imagined it"
],
"syllable_count": [
5,
7,
5
],
"meter_warning": null
}
MCP Access
This API is available as an MCP tool for AI assistants. Connect your agent to:
POST https://api.stupidapis.com/api-error-poem/mcp
POST https://api.stupidapis.com/mcp
Use Pipeworx to connect this MCP tool to Claude, ChatGPT, and other AI assistants with no code.