Handle error responses from Google and add documentation