Improving error messages for invalid claim codes