1.0.1 • Published 7 years ago

http-status-mock v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

Build Status

HTTP-STATUS-MOCK

Server that exposes an endpoint for each HTTP status code. Useful for testing purposes.

Usage

Start the server using npm start, by default the server uses the port 3000, however it's possible to modify this behaviour by passing another port number as first argument : npm start -- 3001.

Every HTTP status code is served on an endpoint named using the code itself. For instance the code 404 is returned by the endpoint /404 (i.e. by accessing localhost:3000/404 with the default configuration).