https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27330 Bug ID: 27330 Summary: Wrong return status when no enrollments in club holds Change sponsored?: --- Product: Koha Version: master Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: REST API Assignee: koha-bugs@lists.koha-community.org Reporter: tomascohen@gmail.com It seems we are expecting a 500 if the club doesn't have any enrollments. A 403 should be returned instead. And it highlights some bad logic in the controller, as it is not catching the narrower exception, but the broader (Exceptions Koha::Club::Hold::add can throw) so some error conditions are being treated wrongly (i.e. bad parameters vs. no enrollments on the club). -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.