Skip to content

Latest commit

 

History

History
8 lines (5 loc) · 259 Bytes

File metadata and controls

8 lines (5 loc) · 259 Bytes

Usage

  • sudo node index.js for port 80
  • PORT=8080 node index.js for any other ports

GET / PUT / DELETE / POST localhost/[code], where code is the http return code you wish.

Example: GET localhost/401 - Returns status 401 Unauthorized.