setStatusCode method
Sets the response status code.
When responseBody is provided, it will be used as the response body instead of the rendered html.
Supported types for responseBody are String and Uint8List.
Implementation
void setStatusCode(int statusCode, {Object? responseBody}) {
_binding
..responseStatusCode = statusCode
..overrideBody(responseBody);
}