@@ -, +, @@ - Fixes a malformed response when biblio_id is invalid - Fixes the return status (400 => 404) when biblio_id is invalid - Adapts the error strings to be consistent with the Cities.pm file $ kshell k$ prove t/db_dependent/api/v1/clubs_holds.t --- Koha/REST/V1/Clubs/Holds.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/Koha/REST/V1/Clubs/Holds.pm +++ a/Koha/REST/V1/Clubs/Holds.pm @@ -81,7 +81,7 @@ sub add { unless ($item) { return $c->render( status => 404, - openapi => { error => "item_id not found." } + openapi => { error => "Item not found" } ); } else { @@ -100,8 +100,8 @@ sub add { unless ($biblio) { return $c->render( - status => 400, - openapi => "Biblio not found." + status => 404, + openapi => { error => "Biblio not found" } ); } --