ass="desc markdown">
          <p>Gets and sets the status code. Any integer value is accepted. For
the official HTTP status codes use the fields from
<a href="dart-io/HttpStatus-class.html">HttpStatus</a>. If no status code is explicitly set the default
value <a href="dart-io/HttpStatus/ok-constant.html">HttpStatus.ok</a> is used.</p>
<p>The status code must be set before the body is written
to. Setting the status code after writing to the response body or
closing the response will throw a <code>StateError