cat-http

0

Описание

:cat: HTTP Cats API

Языки

  • TypeScript60,8%
  • JavaScript18,6%
  • CSS17,2%
  • Shell3,4%
11 лет назад
README.md

http.cat

HTTP Cat picture

About

This is the website that is hosted at https://http.cat.

The code for the older version hosted at the heroku platform is at the http-status-cats-api repo.

This version does not need any server side code. The API behavior is provided by a Nginx server config.

On v2.0.0 the website was built with React and pre-rendered with react-snap.

As of v3.0.0 it's built with Next.js 13.

Development

npm run dev

Runs the tests.

npm run build

Creates a build of the project.

Adding a new image

Currently not all HTTP status codes are covered. You are welcome to create an issue or PR to cover them.

We've prepared some templates to make this process easier.

You can clone it, replace the information with the new one and export as a JPG image.

Then, upload it to both

public/images
and
public/images-original
folders and update the statuses.js file.

Finally you need to add a markdown file in

/content/<status-code>.md
with a description of the status code and links to official documentation. Please follow the format of already existing files. Also, copy this file over to
/content/ca
and ask Copilot, ChatGPT or Google, etc to translate the content to Catalan.

Credits

Thanks to @girliemac for creating the amazing http status cats images.

Thanks to @pfdborges for creating the http.cat logo (RIP my friend).

Thanks to all the contributors:

Star History

Star History Chart

Sponsor / Donate

Please consider sponsoring or donating via the following options:

patron Buy Me A Coffee

You can also adopt an HTTP Cat and have your name in the chosen cat image!

License

MIT