Skip to content

Glossary: TypeScript Beyond the Basics

HttpError

A custom class that extends `Error` and adds the HTTP `status` and an error `code`. The `request` helper throws it when the server answers with an error status such as 404.

Where the book teaches it

Related terms

Network errorTimeout