Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1405480

Summary: [RFE] Report error codes for each error
Product: [Community] Candlepin Reporter: Kevin Howell <khowell>
Component: candlepinAssignee: candlepin-bugs
Status: NEW --- QA Contact: Katello QA List <katello-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 2.0CC: redakkan, skallesh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On:    
Bug Blocks: 1367672    

Description Kevin Howell 2016-12-16 15:38:37 UTC
Description of problem:
It is really difficult to special case error handling in subscription-manager, because errors aren't easily distinguishable. There are some options here (ex. response header, unique String as part of existing error String).

How reproducible: always

Steps to Reproduce:
1. Generate an error in candlepin with default locale
2. Change locale and generate same error

Actual results:
Depending on the locale, the only thing the two errors might share is an identifer.

Expected results:
It would be nice to have some way of identifying the error (ex. CP0000042) or since that would require extra maintenance burden, maybe a error UUID in a header?