Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- stubFor(get(urlPathMatching("/myendpoint/"))
- .withHeader(ACCEPT, containing("application/json))
- .withHeader("Content-Length", equalTo("0"))
- .withHeader(AUTHORIZATION, equalTo("Bearer accessToken))
- .willReturn(aResponse()
- .withStatus(status)
- ));
- org.springframework.web.client.HttpClientErrorException: 404 Not Found
- at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:88)
- at com.xoom.api.client.common.error.UnprocessableEntityResponseErrorHandler.handleError(UnprocessableEntityResponseErrorHandler.java:31)
- ....
- org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class [Lcom.mypackage.myObject.] and content type [application/octet-stream]
- org.springframework.web.client.HttpClientErrorException: 404 Not Found
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement