Minimalistic web server that serves images using any requested HTTP status
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
The picture itself is a plain-text SVG image with a big status code and the status message below.
- 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
.
npm install
npm start