Instance Propertyswift-nio 2.84.0NIOHTTP1
code
The numerical status code for a given HTTP response status.
var code: UInt { get }
The numerical status code for a given HTTP response status.
var code: UInt { get }
import NIOHTTP1
enum HTTPResponseStatus
A HTTP response status code.
@frozen struct UInt
An unsigned integer value type.
init(statusCode: Int, reasonPhrase: String = "")
Initialize a HTTPResponseStatus
from a given status and reason.
var description: String { get }
var mayHaveResponseBody: Bool { get }
Whether responses with this status code may have a response body.
var reasonPhrase: String { get }
The string reason phrase for a given HTTP response status.