# `Ltix.Errors.Unknown.TransportError`
[🔗](https://github.com/DecoyLex/ltix/blob/main/lib/ltix/errors/unknown/transport_error.ex#L1)

HTTP or connection error from a platform endpoint.

The following fields of this exception are public and can be accessed freely.

  * `:status` (`t:integer/0` or `nil`) - the HTTP status, or `nil` when no response arrived
  * `:body` (`t:term/0`) - the response body, or a description of the connection error
  * `:headers` (`t:map/0` or `nil`) - the response headers, such as `"retry-after"`
  * `:url` (`t:String.t/0` or `nil`) - the requested URL

# `exception`

```elixir
@spec exception(opts :: Keyword.t()) :: %Ltix.Errors.Unknown.TransportError{
  __exception__: term(),
  body: term(),
  bread_crumbs: term(),
  class: term(),
  headers: term(),
  path: term(),
  spec_ref: term(),
  splode: term(),
  stacktrace: term(),
  status: term(),
  url: term(),
  vars: term()
}
```

Create an `Elixir.Ltix.Errors.Unknown.TransportError` without raising it.

## Keys

- :status
- :body
- :headers
- :url
- :spec_ref

---

*Consult [api-reference.md](api-reference.md) for complete listing*
