fix http response on upload which issue 'errConnect' if response code is not 200 (could be 201 if server is RESTful)