Skip to content

Commit 7be05f3

Browse files
committed
A couple more http codes just cause
1 parent ae7ceed commit 7be05f3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/core/exception/exception.filter.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ export class ExceptionFilter implements GqlExceptionFilter {
6262
? HttpStatus.FORBIDDEN
6363
: codes.has('Client')
6464
? HttpStatus.BAD_REQUEST
65+
: codes.has('Transient')
66+
? HttpStatus.SERVICE_UNAVAILABLE
67+
: codes.has('NotImplemented')
68+
? HttpStatus.NOT_IMPLEMENTED
6569
: HttpStatus.INTERNAL_SERVER_ERROR;
6670

6771
const out = {

0 commit comments

Comments
 (0)