Use constants to define the number of retries and make them public, so we can reuse them outside the WPClient class.