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