fix(core): update
This commit is contained in:
parent
935ea4386c
commit
cbbf90f6f1
@ -11,7 +11,11 @@ export class HttpStatus {
|
||||
statusInstance = new HttpStatus.statusMap[codeStringArg]();
|
||||
} catch {
|
||||
console.log('unknown status')
|
||||
return null;
|
||||
return new HttpStatus({
|
||||
code: 0,
|
||||
text: 'unknown status',
|
||||
description: `The status ${codeStringArg} is not known.`
|
||||
});
|
||||
}
|
||||
return statusInstance;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user