Introduce exception-mapping module which provides the ExceptionMappingClient that maps a Throwable to a HttpResponse.
As exception handling is extracted from UpstreamHttpService, now gateway module is in charge of only forwarding HttpRequest to upstream.
Introduce
exception-mapping
module which provides theExceptionMappingClient
that maps aThrowable
to aHttpResponse
. As exception handling is extracted fromUpstreamHttpService
, now gateway module is in charge of only forwardingHttpRequest
to upstream.