<div dir="ltr">Hi all, I wanted to mention that I've submitted patches for bug 28020 [1]. The change introduces a new attribute to the generic error response object that is reused everywhere in the spec. The new attribute is called 'error_code' and is intended to be adopted so API consumers have better means to deal with error responses.<div>Remember that right now we return an error status (e.g. 409) and a (too) generic description in textual form (e.g. Conflict found).</div><div><br></div><div>A good use case for this can be seen here [2], in which we already have a handy error string, but we translate it to some text, while we should be returning the error_code attribute, and have it documented on the spec as proposed on bug 28020.</div><div><br></div><div>Early feedback is welcome, as I would base several things on top of this!</div><div><br></div><div>THANKS!</div><div><br></div><div>[1] <a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28020">https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28020</a></div><div>[2] <a href="https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128816">https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=128816</a><br clear="all"><div><br></div>-- <br><div dir="ltr" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-size:12.8px">Tomás Cohen Arazi</div><div style="font-size:12.8px">Theke Solutions (<a href="http://theke.io/" target="_blank">http://theke.io</a>)<br>✆ +54 9351 3513384<br>GPG: B2F3C15F</div></div></div></div></div></div></div>