[Koha-bugs] [Bug 24237] The 406 response on the biblios end point should be more discoverable
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 18 19:31:41 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24237
Tomás Cohen Arazi <tomascohen at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tomascohen at gmail.com
--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Currently, if you don't specify any Accept header you get a 406, and the
following response body (application/json):
[
"application/json",
"application/marcxml+xml",
"application/marc-in-json",
"application/marc"
]
I followed what is described here on the Mozilla site [1]. Now that I re-read
it they suggest the site usually just skips the error and returns a fallback
(the default response). It then mentions if you want to return 406, give the
consumer a list of accept-able mime types.
I am open to any change. Let's discuss it in more detail.
[1] https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406
--
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