API Directory › 🐾 Animals › HTTP Dogs
No authHTTPSCORS

HTTP Dogs API

HTTP status codes as dog photos — the canine version of HTTP Cats.

Category
Auth
No auth needed
HTTPS
Yes
CORS
Yes
Open HTTP Dogs docs ↗

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

https://http.dog

Authentication

None. /{code}.jpg (also .webp, .avif, .json). The .json variant returns {"image": "...", "status_code": 404, "title": "Not Found", "url": "..."}.

Code examples

HTML
<img src="https://http.dog/418.jpg" alt="418 I'm a teapot">
curl (JSON)
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) imageURL of the image
(.json) status_code / titleThe code and its reason phrase
(.json) urlCanonical http.dog page for that code

Common errors

404No 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.

🛠️ Handy LarzOS tools

Free tools to help you work with this API.

JSON Formatter

Related Animals APIs

← Back

More Animals APIs · All 196 APIs