Int

extension Int
  • Returns true when the status code is in the 2xx range.

    Declaration

    Swift

    public func isSuccess() -> Bool
  • Returns true when the status code is in the 3xx range.

    Declaration

    Swift

    public func isRedirect() -> Bool
  • Returns true when the status code is in the 4xx range.

    Declaration

    Swift

    public func isClientError() -> Bool
  • Returns true when the status code is in the 5xx range.

    Declaration

    Swift

    public func isServerError() -> Bool