Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Error handling in RESTful Webservices

 
Saathvik Reddy
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to Restful web services. Could anyone point me to any resources which talks about Error handling in Restful web services.

Thanks in advance
Srikanth.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13071
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RESTful designs like to use existing HTTP error reporting mechanisms rather than inventing new ones.

The javax.servlet.http.HttpServletResponse interface Javadocs gives a list of these industry standard status codes.

Bill
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic