Function validateResponse

  • Validate the HTTP response object.

    Parameters

    • resp: Response

      The response to validate.

    • Optionalval: unknown

      The associated value.

    Returns void

    Error if the response is invalid.