<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
On Feb 25, 2015, at 10:47 AM, Doug Hellmann <<a href="mailto:doug@doughellmann.com">doug@doughellmann.com</a>> wrote:<br>
<div><br>
<blockquote type="cite">
<div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">
On Wed, Feb 25, 2015, at 09:33 AM, Eugeniya Kudryashova wrote:<br>
<blockquote type="cite">Hi, stackers!<br>
<br>
As was suggested in topic [1], using an HTTP header was a good solution<br>
for<br>
communicating common/standardized OpenStack API error codes.<br>
<br>
So I’d like to begin working on a common library, which will collect all<br>
openstack HTTP API errors, and assign them string error codes. My<br>
suggested<br>
name for library is openstack.error, but please feel free to propose<br>
something different.<br>
<br>
The other question is where we should allocate such project, in openstack<br>
or stackforge, or maybe oslo-incubator? I think such project will be too<br>
massive (due to dealing with lots and lots of exceptions)  to allocate it<br>
as a part of oslo, so I propose developing the project on Stackforge and<br>
then eventually have it moved into the openstack/ code namespace when the<br>
other projects begin using the library.<br>
<br>
Let me know your feedback, please!<br>
</blockquote>
<br>
I'm not sure a single library as a home to all of the various error<br>
messages is the right approach. I thought, based on re-reading the<br>
thread you link to, that the idea was to come up with a standard schema<br>
for error payloads and then let the projects fill in the details. We<br>
might need a library for utility functions, but that wouldn't actually<br>
include the error messages.<br>
<br>
Did I misunderstand?<br>
<br>
Doug<br>
</div>
</blockquote>
<div><br>
</div>
<div>
<div>After rereading this thread I came to the same conclusion as Doug did.</div>
<div><br>
</div>
<div>There was more support for putting the errors in "a standard json error payload” as Sean Dague originally suggested. [1]</div>
<div><br>
</div>
<div>Regards,</div>
<div>Everett</div>
<div><br>
</div>
<div>[1] <a href="http://lists.openstack.org/pipermail/openstack-dev/2015-January/055570.html">
http://lists.openstack.org/pipermail/openstack-dev/2015-January/055570.html</a></div>
<div><br>
</div>
</div>
</div>
</body>
</html>