GET
/errors
Errors that teach
Every 4xx is RFC 9457 problem+json with an extra fix field containing a corrected, copy-pasteable call. An agent that gets something wrong can recover in one step without reading any documentation, which is the whole design goal of this API.
View as MarkdownPaste this page into any AI assistant. It is plain, portable Markdown.
Try it
GET/errors?
Parameters
| Name | Type | Detail |
|---|---|---|
| type | string | A URL identifying the problem class. |
| title | string | A short, human-readable summary. |
| status | integer | The HTTP status code, repeated in the body. |
| detail | string | What went wrong with this specific request. |
| field | string | The parameter at fault, when there is one. |
| fix | string | A corrected call you can run as-is. This is the field that matters. |
When you get it wrong
Errors are RFC 9457 problem+json with one addition: a fix field containing a corrected call you can run as-is.
{
"type": "https://useqr.app/errors",
"title": "Missing data",
"status": 400,
"detail": "Tell us what to encode: we accept data=, text=, content=, or url=.",
"fix": "/api/v1/qr?data=hello%20world&size=512"
}