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 (https://vaadin.com/docs-beta/latest/fusion/application/client-exceptions/) says there is a EndpointException for this case. But I can’t find them.

Has someone an idea?

Thanks,
Lars