HTTP Dogs API
HTTP status codes as dog photos — the canine version of HTTP Cats.
What it does
http.dog is the canine counterpart to http.cat: a dog photo for every HTTP status code, available as JPEG, WebP, AVIF or a JSON object with the image URL and status text.
Base URL
Authentication
None. /{code}.jpg (also .webp, .avif, .json). The .json variant returns {"image": "...", "status_code": 404, "title": "Not Found", "url": "..."}.
Code examples
<img src="https://http.dog/418.jpg" alt="418 I'm a teapot">
curl -s https://http.dog/503.json
Rate limits & quotas
No documented rate limit; CDN-served static images. Prefer the modern formats (.webp/.avif) for smaller payloads, and self-host for anything high-traffic.
Key response fields
| (.jpg / .webp / .avif) | The image bytes in that format |
| (.json) image | URL of the image |
| (.json) status_code / title | The code and its reason phrase |
| (.json) url | Canonical http.dog page for that code |
Common errors
| 404 | No image for that code. |
| (format support) | Very old clients may not render AVIF — fall back to JPEG. |
When to use it (and alternatives)
Same use as http.cat — friendlier error pages, docs and dashboards — but with a JSON option and modern image formats, and dogs.
FAQ
http.cat or http.dog?
Purely preference. http.dog adds a .json endpoint (useful if you want the status title too) and WebP/AVIF formats.
Can I get the status text?
Yes — use the .json variant, which includes title (e.g. ‘Service Unavailable’).
Should I hotlink these?
For demos, sure. For a production error page, download the handful you use so the page still renders when the service or network is down.
New to APIs?
Short guides for working with this API — and any other.