# `Req.UnexpectedStatusError`
[🔗](https://github.com/wojtekmach/req/blob/v0.8.0-rc.0/lib/req/unexpected_status_error.ex#L1)

An exception returned by `Req.Expect` when response has unexpected status.

The public fields are:

  * `:expected_status` - the expected HTTP response status

  * `:actual_status` - the actual HTTP response status

---

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