@Test
void redirect() {

    assertThatThrownBy(() -> Response.redirect(null, HTTPStatus.OK))
            .isInstanceOf(Error.class)
            .hasMessageContaining("invalid redirect status");
    assertThat(Response.redirect("/path").status()).isEqualTo(HTTPStatus.SEE_OTHER);
}