Bug 39983 - Return 405 (Method not allowed) when a route is called with the wrong method
Summary: Return 405 (Method not allowed) when a route is called with the wrong method
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: REST API (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-23 14:34 UTC by Katrin Fischer
Modified: 2025-05-23 14:34 UTC (History)
2 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Katrin Fischer 2025-05-23 14:34:17 UTC
We just did a bit of debugging and the problem turned out to be that the wrong method was used (GET vs. POST) and this resulted in a 404.

It might be a nice improvement if we returned 405 instead to give a better clue about the error.