[Koha-bugs] [Bug 28020] New: Error responses should return a code
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Mar 22 20:52:21 CET 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28020
Bug ID: 28020
Summary: Error responses should return a code
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: REST API
Assignee: koha-bugs at lists.koha-community.org
Reporter: tomascohen at gmail.com
Right now, many error conditions on the REST API correctly return an error
status (e.g. 500, 400, 403, etc) and a nice description of the error (e.g.
"Anonymous patron cannot be deleted").
But, in order to ease building translatable UIs based on the REST API, we need
to add an 'error_code' attribute, and probably a payload to the responses for
using later to query a key/value collection (or similar).
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list