pub fn status(conn: &Conn, color: bool) -> StatusOutputExpand description
formatter for the http status
displays just the numeric code of the status. when color is enabled, it uses the following color encoding:
| code | color |
|---|---|
| 2xx | green |
| 3xx | cyan |
| 4xx | yellow |
| 5xx | red |
| ??? | white |