server/response-handler.js
function apiError(response, error) {
  var content = errorContentExt(ErrorType.server, error);
  send(response, content, StatusCode.internalServerError);
}
function apiError(response, error) {
  var content = errorContentExt(ErrorType.server, error);
  send(response, content, StatusCode.internalServerError);
}
function apiError ( response , error ) { var content = errorContentExt ( ErrorType . server , error ) ; send ( response , content , StatusCode . internalServerError ) ; }
Send an api error response

@param response  - response object
@param message   - (optional) message to accompany and describe the
invalid response
@param body      - (optional) additional body to the response
Send an api error response