generateErrorResponse method

  1. @override
void generateErrorResponse(
  1. dynamic response,
  2. int? status
)
override

Error response

Implementation

@override
void generateErrorResponse(dynamic response, int? status) {
  /* Generate the error response */
  jsonResponse.error = true;
  jsonResponse.jsonCmisResponse = response;
  jsonResponse.errorCode = status;
  if (status == 0) {
    response.error = 'Invalid HTTP response';
    response.reason = 'HEAD or status code of 0';
  }
}