ValidateStatus410ErrorBodyStrategy

public struct ValidateStatus410ErrorBodyStrategy : ResponseErrorBodyDecodingStrategy

A strategy for validating the body of a response with a status code of 410.

The ValidateStatus410ErrorBodyStrategy struct provides a strategy for validating the body of a response with a status code of 410.

Example usage:

@ResponseErrorBodyWrapper<Body, ValidateStatus410ErrorBodyStrategy> var body: Body
  • Determines if the given status code represents an error.

    This method checks if the provided status code is equal to the HTTP status code for “Gone” (410).

    Declaration

    Swift

    public static func isError(statusCode: Int) -> Bool

    Parameters

    statusCode

    The status code to check.

    Return Value

    true if the status code is 410, otherwise false.