Centralize http error handling

Don’t handle failures in _handleHttp but instead in handle
Support custom resource level error handlers