HTTPStatusText

public class HTTPStatusText

Constants for HTTP status text.

  • Declaration

    Swift

    public static func forCode(_ code: Int) -> String

    Parameters

    code

    HTTP status code.

    Return Value

    The standard status text message for an HTTP status code.