Handle the error response when the record is uploaded

Fix edina/fieldtrip-gb#128