provide the status of the sync request to the caller

Hi,

This allows us to view any HTTP error status code when calling the sync method.
It's used in the app.

Jeroen.