# `AppBlockList.Response`
[🔗](https://github.com/explainableaixai/appblocklist-elixir/blob/v1.0.0/lib/appblocklist/response.ex#L1)

Pure translation of an HTTP status and body into a result. No network.

# `parse`

```elixir
@spec parse(non_neg_integer(), binary() | map()) ::
  {:ok, AppBlockList.App.t()} | {:error, AppBlockList.Error.t()}
```

Parses a raw response body (binary or already decoded map).

Returns `{:ok, %AppBlockList.App{}}` for 200 and 404 (with `found: false`),
and `{:error, %AppBlockList.Error{}}` for everything else.

---

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