Interface to define callbacks for OkHttp requests.
Called when the HTTP request fails.
Called when the HTTP request is successful.