Skip to content

OpenAPI_Response_StatusCode

mattpolzin edited this page May 23, 2020 · 3 revisions

OpenAPI.Response.StatusCode

An HTTP Status code or status code range.

public enum StatusCode

OpenAPI supports one of the following as a key in the Responses Object:

The .default case is used for a default entry.

You can use integer literals to specify an exact status code.

Status code ranges are named in the StatusCode.Range enum. For example, the "1XX" range (100-199) can be written as either .range(.information) or as .range(.init(rawValue: "1XX")).

Inheritance

Decodable, Encodable, Equatable, ExpressibleByIntegerLiteral, Hashable, RawRepresentable

Nested Type Aliases

RawValue

public typealias RawValue = String

Initializers

init?(rawValue:)

public init?(rawValue: String)

Enumeration Cases

`default`

case `default`

range

case range(: Range)

status

case status(code: Int)

Properties

rawValue

var rawValue: String

isSuccess

var isSuccess: Bool
Types
Protocols
Global Functions
Extensions
Clone this wiki locally