REST services in general return errors via the HTTP status code, so first of all, you should carefully choose the status code you are returning on a service call. Besides the HTTP status code there is no standard way of how to provide additional error information with REST service implementations. Developers can return additional information in HTTP headers or body, though.With the Bridge REST implementation, we decided to provide error information via the HTTP body by an error class or a Blob.
Defining Errors in the REST Service Interface
There were errors rendering macro: An unknown error occurred.
Implementing Error Handling
There were errors rendering macro: An unknown error occurred.