Domain Documentation

Structure HTTPError​Response

public struct HTTPErrorResponse: Codable  

Response for expressing HTTPResponse in JSON body.

Often used when returning 404 Not found. Prepared to match the response of production API. I remember that it was not specified as a RealWorld specification.

HTTPErrorResponse HTTPErrorResponse Codable Codable HTTPErrorResponse->Codable

Conforms To

Codable

Initializers

init(_:​error:​)

public init(_ status: String, error: String)