https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36066
--- Comment #11 from Tomás Cohen Arazi <[email protected]> --- (In reply to Victor Grousset/tuxayo from comment #10) > Another thing that made it slip unnoticed is the return code being the same > for not having the right permission and trying to delete something not in > the right state for deletion. Good catch! > This is totally out of this ticket: Isn't there any code to differential > these two things? I'm just asking to know if I should open a ticket or if > there is really nothing to do about this and just move on. We use 409 (Conflict) for such cases: "Indicates that the request could not be processed because of conflict in the current state of the resource, such as an edit conflict between multiple simultaneous updates." Try ``` cd api/v1/swagger/paths git grep 409 ``` Best regards -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
