Fake Error Message
The Fake Error Message API returns one error dialog per call. Severity options: warning, error, critical, philosophical. Includes title ("File is happy"), body ("Cannot save happy files."), button options, modal flag, dismissable flag, and an icon.
Try It — No Seriously
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
severity |
string |
Optional | error |
Default: error. |
Examples
curl "https://api.stupidapis.com/fake-error-message/generate?severity=philosophical"
import requests
response = requests.get("https://api.stupidapis.com/fake-error-message/generate", params={"severity": "philosophical"})
print(response.json())
const response = await fetch("https://api.stupidapis.com/fake-error-message/generate?severity=philosophical");
const data = await response.json();
Response Schema
| Field | Type | Description |
|---|---|---|
severity |
string |
Severity level |
title |
string |
Dialog title |
body |
string |
Dialog body text |
buttons |
string[] |
Button labels |
modal |
boolean |
Whether it blocks interaction |
dismissable |
boolean |
Whether the user can close it |
has_progress_bar |
boolean |
Whether to show a progress bar |
icon |
string |
Icon character |
Example Response
{
"severity": "philosophical",
"title": "Why",
"body": "Why.",
"buttons": [
"Yes",
"Also yes"
],
"modal": true,
"dismissable": false,
"has_progress_bar": false,
"icon": "?"
}
MCP Access
This API is available as an MCP tool for AI assistants. Connect your agent to:
POST https://api.stupidapis.com/fake-error-message/mcp
POST https://api.stupidapis.com/mcp
Use Pipeworx to connect this MCP tool to Claude, ChatGPT, and other AI assistants with no code.