accept

fun HttpResponse.accept(vararg codes: HttpStatusCode): HttpResponse(source)

Asserts the response status is one of codes.

Return

The same HttpResponse for chaining.

Throws

if the status does not match.