init(code:reasonPhrase:)
Create a custom status from a code and a reason phrase.
init(code: Int, reasonPhrase: String = "")
Parameters
- code
The status code.
- reasonPhrase
The optional reason phrase. Invalid characters, including any characters not representable in ISO Latin 1 encoding, are converted into space characters.