API Directory › 🐾 Animals › HTTP Cats
No authHTTPSCORS

HTTP Cats API

Every HTTP status code illustrated by a cat photo — fun for error pages.

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

What it does

http.cat maps every HTTP status code to a photo of a cat acting out that status. Request https://http.cat/404 and you get a cat behind a ‘not found’ sign. It is a joke API, widely used to make error pages and API docs friendlier.

Base URL

https://http.cat

Authentication

None. /{statusCode} or /{statusCode}.jpg returns the image directly. There is an image for every standard code (and many non-standard ones).

Code examples

HTML
<img src="https://http.cat/404" alt="404 Not Found">
Python (attach to your own error responses)
@app.errorhandler(500)
def err(e):
    return f'<h1>500</h1><img src="https://http.cat/500">', 500

Rate limits & quotas

No documented rate limit; static images on a CDN. Cache or self-host the images if you embed them in high-traffic error pages.

Key response fields

(image bytes)A JPEG for the requested status code
/{code}.jpgExplicit extension — same result

Common errors

404For a code that has no image (rare — most standard and many custom codes exist).
(hotlink reliability)It is a free service; for production error pages, download the images you use.

When to use it (and alternatives)

A quick way to add personality to 404/500 pages, API documentation, status dashboards and slide decks. For the dog equivalent, http.dog.

FAQ

Which status codes are covered?

All the common ones (2xx–5xx) plus many unofficial codes (418 ‘I’m a teapot’, Cloudflare 5xx variants, etc.). A missing code returns 404.

Can I use it on a real error page?

Yes, but download and self-host the specific images — don’t make your error page depend on a third-party service that might be down exactly when things are already broken.

Is there an API to list codes?

No — it is just /{code}. The list of available codes is on the http.cat homepage.

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