Updated rest error handling code to contain error description;