function to resolve response_code to text (to show as validation error, to log, etc)