modified examples of RESTful Web Service.
added the Controller for error handling.