Improve error handling on rest api

This change includes error handling improvements in the REST API.

Issue-ID: RICAPP-198

Signed-off-by: Alexandre Huff <alexandrehuff@utfpr.edu.br>
Change-Id: Id20541ba0a925407bbca32ebbdd5c37adf5692cd
4 files changed