Record details of a handler failure.
MCOREST_API void mcorest_api_failure(mcohs_request_h req,
const char *file,
int line,
int is_internal);
req
file
line
is_internal
This function records details of a handler failure. This information will be returned to the REST API caller. No data should be written into the request after this function is called. Subsequent calls are ignored. The is_internal flag indicates that the failure is internal to the service, as opposed to being caused by an invalid request. Internal errors are reported to the REST API client using HTTP status code 500; external ones are reported using HTTP status code 400.
void