RestBuilder#doRequestInternal invokes RestTemplate#exchange and wraps it with a try-catch block that handles exceptions of type org.springframework.web.client.HttpClientErrorException.
exchange may also throw exceptions of type org.springframework.web.client.HttpServerErrorException; the server exceptions are uncaught and are propagated to the plugin user.
This creates an inconsistency in the response because the client exceptions are returned wrapped by ErrorResponse.
RestBuilder#doRequestInternal
invokesRestTemplate#exchange
and wraps it with a try-catch block that handles exceptions of typeorg.springframework.web.client.HttpClientErrorException
.exchange
may also throw exceptions of typeorg.springframework.web.client.HttpServerErrorException
; the server exceptions are uncaught and are propagated to the plugin user.This creates an inconsistency in the response because the client exceptions are returned wrapped by
ErrorResponse
.