How to get the status code of a failed backend request?

When I call: demoEndpoint.getText().catch((er) => console.log(er)); I see only the error msg I case of failure. But I would like to see the status code.

The documentation ( says there is a EndpointException for this case. But I can’t find them.

Has someone an idea?