---
title: "HttpError"
url: https://una-lang.org/en/docs/std/prelude/HttpError/
release: v0.4.0
edition: "0.2 and later"
source: https://github.com/una-lang/una/blob/v0.4.0/docs/std/listing.json
---

# HttpError

A kind of the prelude, in scope in every module. Edition 0.2 and later.

## Edition 0.2 and later

```una
pub kind HttpError = Denied | BadUrl | BadRequest | Unreachable | TimedOut | TooLarge | Tls | Protocol
```

Why an HTTP request got no response it may return (`spec/24 §1` rule 3).

## Edition 0.4, 0.5 preview

```una
pub kind HttpError = Denied | BadUrl | BadRequest | Unreachable | TimedOut | TooLarge | Tls | Protocol | Interrupted | RateLimited
```

Why an HTTP request got no response it may return (`spec/24 §1` rule 3).

## Specification

- [`spec/24 §1`](https://una-lang.org/en/docs/spec/24-http/#s1)

Generated from the standard modules of una v0.4.0 ([`docs/std/listing.json`](https://github.com/una-lang/una/blob/5fec93d88932b333feec25e589355a2cb34c37b5/docs/std/listing.json), which is not part of the specification). The specification governs: [`spec/14 §1`](https://una-lang.org/en/docs/spec/14-standard-library/#s1).
