if (error.response.status===StatusCodes.CONFLICT){
if (error.response.status===StatusCodes.INSUFFICIENT_SPACE_ON_RESOURCE){
spinner.fail(`You've already reached the max number of exercise of this assignment.`);
if (error.response.data&&(error.response.dataas DojoBackendResponse<Array<GitlabUser>>).code===DojoStatusCode.MAX_EXERCISE_PER_ASSIGNMENT_REACHED){
spinner.fail(`The following users have reached the maximum number of exercise of this assignment : ${((error.response.dataas DojoBackendResponse<Array<GitlabUser>>).dataas Array<GitlabUser>).map(user=>user.name).join(', ')}.`);
}else{
spinner.fail(`You've already reached the max number of exercise of this assignment.`);
}
}else{
}else{
if ((error.response.dataas DojoBackendResponse<unknown>).code===DojoStatusCode.EXERCISE_CREATION_GITLAB_ERROR){
if ((error.response.dataas DojoBackendResponse<unknown>).code===DojoStatusCode.EXERCISE_CREATION_GITLAB_ERROR){
spinner.fail(`Exercise creation error: An unknown error occurred while creating the exercise on Gitlab. Please try again later or contact an administrator.`);
spinner.fail(`Exercise creation error: An unknown error occurred while creating the exercise on Gitlab. Please try again later or contact an administrator.`);