/reply

Reply any HTTP statuscode to any HTTP method call

Primary LanguageJavaScript

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.