Utility to interact with HTTP status code in Node.js