reasonPhrase property
getter/setter pair
The reason phrase for the response.
If no reason phrase is explicitly set, a default reason phrase is provided.
The reason phrase must be set before the body is written to. Setting the reason phrase after writing to the response body or closing the response will throw a StateError.
The allowed characters are HTAB (0x09), SP (0x20), VCHAR
(0x21–0x7E), and obs-text (0x80–0xFF) per RFC 9112 section 4.
Setting a reason phrase containing any other character throws a
FormatException.
Implementation
late String reasonPhrase;