creation of a centralized error handler using http-error