Improve error return (#137)
Improve error return (#137)

* add error handler

* create Get to connect without panic if error

* use Get to connect instead of MustGet to avoid panic

* using errorHandler

* move errorHandler to helper package

* fix errorHandler call

* fix middleware name

* error handler return application/json

* update WriteHeader return

* fix tests

* fix tests

* fix tests

* fix to use middleware instead of helpers.ErrorHandler

* fix version dependent test

nuveo/prest,nuveo/prest