# `GraphApi.Error.ApiError`
[🔗](https://github.com/keenmate/microsoft_graph/blob/v1.0.0-rc.1/lib/graph_api/error.ex#L6)

Represents a non-2xx response from the Microsoft Graph API.

## Fields

* `:status` - HTTP status code
* `:code` - Graph API error code (e.g., "Request_ResourceNotFound")
* `:message` - Human-readable error message
* `:details` - Raw error response body

# `t`

```elixir
@type t() :: %GraphApi.Error.ApiError{
  __exception__: true,
  code: String.t() | nil,
  details: map() | nil,
  message: String.t(),
  status: integer()
}
```

---

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