jomo / ImgAnyStatus

Minimalistic web server that serves images with any requested HTTP status

Home Page:https://img-any-status.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImgAnyStatus

Minimalistic web server that serves images using any requested HTTP status


API

  • GET /200 returns an image using status code 200.
  • GET /500 returns an image using status code 500.
  • GET /404 returns an image using status code 404.
  • You get the idea

Image

The picture itself is a plain-text SVG image with a big status code and the status message below. example

Note

  • Only numeric status codes are accepted.
  • The server does not respect any HTTP rules and always sends a body, then closes the connection.
  • The status message is taken from http.STATUS_CODES.

Run

npm install
npm start

See also

http://httpstatus.es // @citricsquid/httpstatus.es

About

Minimalistic web server that serves images with any requested HTTP status

https://img-any-status.herokuapp.com

License:Do What The F*ck You Want To Public License


Languages

Language:JavaScript 100.0%