Announcement Announcement Module
Collapse
No announcement yet.
Using's Rest Templates ErrorHandler Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using's Rest Templates ErrorHandler

    Hi all,

    I'm using Spring's REST template to integrate with some existing REST based web services. The web services are programmed slighly differently and return errors in different ways. For example some return a HTTP 200 status with an exception code and message in the response and some return error HTTP status codes. I notice on the RestTemplate class you can set an ErrorHandler. Should I be setting different handlers when I call the web services or should I just have one handler that handles all exception variations somehow?

    Thanks for any advice.
Working...
X