processResponse
@NonNull
public MutableHttpResponse<JsonError> processResponse(@NonNull
ErrorContext errorContext,
@NonNull
MutableHttpResponse<?> response)
Modifies the http response representing the error. Callers of this
method should return the response that was passed in ,
however that isn't required.
- Specified by:
processResponse in interface ErrorResponseProcessor<JsonError>
- Parameters:
errorContext - The error context
response - The base response to retrieve information or
mutate
- Returns:
- An error response