Returning only error message (without stack trace) when any of the REST
APIs fail