Don't raise parse.error on REST error. Replace the custom Error with RuntimeError.