This is more of a style thing, but if you're going to use early `return` statements (which I like to use as well in JS), you can take the opportunity to "flatten" the conditionals, makes it easier to read I find. So the above function body could look like:

```javascript
var statusCode = error.status;

if (statusCode === 401) {
  // handle the 401
  return;
}

if (statusCode === 500) {
  // handle the 500
  return;
}

// default handler
```