### Question:
DefaultResponseErrorHandler implements ResponseErrorHandler { @Override public boolean hasError(ClientHttpResponse response) throws IOException { HttpStatus statusCode = response.getStatusCode(); return statusCode.series() == HttpStatus.Series.CLIENT_ERROR || statusCode.series() == HttpStatus.Series.SERVER_ERROR; }  @Override boolean hasError(ClientHttpResponse response); @Override void handleError(ClientHttpResponse response);  }### Answer:
@Test public void hasError() throws Exception { assertTrue(errorHandler.hasError(new MockClientHttpResponse(HttpStatus.INTERNAL_SERVER_ERROR))); assertTrue(errorHandler.hasError(new MockClientHttpResponse(HttpStatus.BAD_REQUEST))); assertFalse(errorHandler.hasError(new MockClientHttpResponse(HttpStatus.ACCEPTED))); }