[Koha-bugs] [Bug 30256] New: PUT /patrons/42 returns 201 instead of 200
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 9 16:59:40 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30256
Bug ID: 30256
Summary: PUT /patrons/42 returns 201 instead of 200
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: REST API
Assignee: koha-bugs at lists.koha-community.org
Reporter: jonathan.druart+koha at gmail.com
CC: tomascohen at gmail.com
https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT
"""
If the target resource does not have a current representation and the PUT
request successfully creates one, then the origin server must inform the user
agent by sending a 201 (Created) response.
If the target resource does have a current representation and that
representation is successfully modified in accordance with the state of the
enclosed representation, then the origin server must send either a 200 (OK) or
a 204 (No Content) response to indicate successful completion of the request.
"""
We are returning 200, at least for /patrons
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list