Index: samesite.py ================================================================== --- samesite.py +++ samesite.py @@ -335,11 +335,14 @@ index.sync() except urllib.error.HTTPError as error: # in case of error we don't need to do anything actually, # if file download stalls or fails the file would not be moved to it's location + self.send_response(error.code) + self.end_headers() print(error, repr(my_headers)) + return print(index[my_path_b]) if not os.access(file_name, os.R_OK) and os.access(temp_name, os.R_OK) and '_parts' in index[my_path_b] and index[my_path_b]['_parts'] == spacemap.SpaceMap(): # just moving