sudo node index.js
for port 80PORT=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.
Reply any HTTP statuscode to any HTTP method call
sudo node index.js
for port 80PORT=8080 node index.js
for any other portsGET
/ PUT
/ DELETE
/ POST
localhost/[code], where code is the http return code you wish.
Example: GET localhost/401 - Returns status 401 Unauthorized.
Reply any HTTP statuscode to any HTTP method call