Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

Example for http-response-status-code

node v14.20.1
version: 1.6.0
endpointsharetweet
var STATUS_CODES = require("http-response-status-code") console.log(STATUS_CODES.getStatusName(STATUS_CODES.OK)); // OK console.log(STATUS_CODES.getStatusDescription(STATUS_CODES.INTERNAL_SERVER_ERROR)); // Internal Server Error console.log(STATUS_CODES.getStatusCode("IM_A_TEAPOT")); // 418 console.log(STATUS_CODES.CODES.HTTP_CODE_200); //200 process.exit();
A working example for the http-response-status-code package.
Loading…

1 comment

  • posted a year ago by 64e612f2e46ba00008bd58ae
    Good work

sign in to comment