refactor with http-errors

cc @eivindfjeldstad @jonathanong 
[#5](https://github.com/jshttp/http-errors/issues/5)