Catch error with Files.Sync upload.

If a non OK status code is returned in the response, then throw an error
with the details.