Upload functions now pass on response.statusCode to callbacks

With some API calls that return an empty response (e.g. createPage), there is currently no way to find out whether or not the request succeeded or failed.