Skip to content

Commit

Permalink
updated forbidden error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajen07 committed Jun 24, 2024
1 parent 6c97064 commit a8cec63
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/features/features.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import {
Delete,
ParseIntPipe,
Request,
HttpException,
HttpStatus,
NotFoundException,
ForbiddenException,
Expand Down Expand Up @@ -205,9 +204,8 @@ export class FeaturesController {
);
return updatedFeature;
} else {
throw new HttpException(
"user is unauthorized to perform this action",
HttpStatus.FORBIDDEN,
throw new ForbiddenException(
"Access denied: You do not have sufficient permissions to perform this action",
);
}
}
Expand Down

0 comments on commit a8cec63

Please sign in to comment.