DEV Community

Dodo Mukunzi
Dodo Mukunzi

Posted on • Edited on

4

View All HTTP Status Codes Offline 😜

If you have NodeJS installed just type node in your command line/shell/terminal then type http.STATUS_CODES. All status codes will be returned, just like so:

$ node
> http.STATUS_CODES
{ '100': 'Continue',
  '101': 'Switching Protocols',
  '102': 'Processing',
  '200': 'OK',
  '201': 'Created',
  '202': 'Accepted',
  ... }
Enter fullscreen mode Exit fullscreen mode

Also try http.METHODS just for more fun.

Top comments (0)

Heroku

Build apps, not infrastructure.

Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.

Visit Site

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay