fix(core): update

This commit is contained in:
Philipp Kunz 2021-08-19 18:42:52 +02:00
parent 935ea4386c
commit cbbf90f6f1

View File

@ -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;
}