Advanced error handling with REST based web service