Best Practice for Extending Errors with HTTP Status in TypeScript
What is the best practice for extending errors?
Let's say we want to have a function that correctly sends error response in http server. Each "sendable" error should have http status defined.
I tried something like this:
But the problem is, that the tag is not overridden when extending
That means this:
Let's say we want to have a function that correctly sends error response in http server. Each "sendable" error should have http status defined.
I tried something like this:
But the problem is, that the tag is not overridden when extending
TaggedError. That means this:
