diff --git a/index.js b/index.js index 93a243a..e227a8d 100644 --- a/index.js +++ b/index.js @@ -113,7 +113,7 @@ function log (print, ctx, start, len, err, event) { // set the color of the status code; const s = status / 100 | 0 - const color = colorCodes.hasOwnProperty(s) ? colorCodes[s] : 0 + const color = colorCodes.hasOwnProperty(s) ? colorCodes[s] : colorCodes[0] // get the human readable response length let length