init(code:reasonPhrase:)

Create a custom status from a code and a reason phrase.

HTTPResponse.swift:35
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.