HttpStatus constructor

const HttpStatus(
  1. int code
)

An HTTP status code.

Implementation

const HttpStatus(this.code)
  : assert(code >= 100 && code <= 999, 'code must be in the range 100-999');