Announcement Announcement Module
Collapse
No announcement yet.
Custom HttpStatus code and retrun server responce object Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Custom HttpStatus code and retrun server responce object

    Hi,

    I have to handle custom status code such as 830 sent by a REST service.
    This status not defined in spring HttpStatus; I tried to overwrite this HttpStatus in my code and add my status code; then i added custom ResponseErrorHandler to my restTemplate; but the response reached there don't have the response body; I tried to call
    response.getBody() but it throw ResourceAccessException
    however when i get the status i have to get the response from the server.

    I searched about this issue and find the following question without an answer
    http://stackoverflow.com/questions/1...05545#17205545

    Any solution highly appreciated
Working...
X