Adds http server error handling