generateErrorResponse method
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';
}
}