# `Alternera.Plugin.Editor.StatusSuggestions`
[🔗](https://github.com/10e-ab/alternera-sdk/blob/v0.9.0/alternera_plugin_editor/lib/alternera/plugin/editor/status_suggestions.ex#L1)

HTTP statuses as a comma-separated status field's `<.suggest_input
mode="list">` offers them, each with its reason phrase under it.

`codes/0` is the common statuses, in number order, for a field that
takes numbers only (a response cache's Statuses). `with_classes/0` puts
the five classes (`2xx` …) first, for a field that also takes a class
or a range (a Request step's Success statuses).

# `suggestion`

```elixir
@type suggestion() :: %{value: String.t(), description: String.t()}
```

An entry as the `SuggestInput` hook reads it.

# `codes`

```elixir
@spec codes() :: [suggestion()]
```

The common statuses, each with its reason phrase.

# `with_classes`

```elixir
@spec with_classes() :: [suggestion()]
```

The five status classes, then `codes/0`.

---

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