DEV Community

Dodo Mukunzi
Dodo Mukunzi

Posted on • Edited on

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)