HTTPError

public struct HTTPError : Error

This is a quick resolver for the basic HTTP status.

  • This is the HTTP response code for this error.

    Declaration

    Swift

    public var code: Int
  • This is an optional description string that can be added when instantiated. If it is given, then it will be returned in the response.

    Declaration

    Swift

    public var description: String?
  • Declaration

    Swift

    public var localizedDescription: String { get }

    Return Value

    A localized description for the instance HTTP code.