Skip to content

Commit d196fed

Browse files
Merge pull request #2988 from wilsonyiyi/patch-1
docs(exception-filters): replace status with statusCode
2 parents 86f5c20 + 14ef8de commit d196fed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/exception-filters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async findAll() {
7272
await this.service.findAll()
7373
} catch (error) {
7474
throw new HttpException({
75-
status: HttpStatus.FORBIDDEN,
75+
statusCode: HttpStatus.FORBIDDEN,
7676
error: 'This is a custom message',
7777
}, HttpStatus.FORBIDDEN, {
7878
cause: error

0 commit comments

Comments
 (0)