How to use the getStatus function from http-status-codes

Find comprehensive JavaScript http-status-codes.getStatus code examples handpicked from public code repositorys.

444
445
446
447
448
449
450
451
452
if (res.headersSent) {

    return next(err);
}
respond(res.status(...[
    HttpStatus.getStatus(...[
        err.code
    ]) || 500
]), {
fork icon0
star icon39
watch icon4

+ 5 other calls in file