Check for and 4xx status in registry
Check for and 4xx status in registry

In case of a scope that does not exist or the current user have no access to, the response code will be 401 (unauthorized).
This check check against all 4xx codes and prevents a runtime error in trying to call `json` function on a non-existing response.

![](https://user-images.githubusercontent.com/516342/51861761-b18c7a80-2345-11e9-8c13-a69b1be9e158.png)
katranci/github-npm-stats