Refactor gapi_request

Retry on not found error (404)