Contents

localizedString(forStatusCode:)

Returns a localized string corresponding to a specified HTTP status code.

Declaration

class func localizedString(forStatusCode statusCode: Int) -> String

Parameters

  • statusCode:

    The HTTP status code. See Rfc2616 for details.

Return Value

A localized string suitable for displaying to users that describes the specified status code.

See Also

Getting response status codes