grouper-users - [grouper-users] Web Services return 500, but have mostly done what I want
Subject: Grouper Users - Open Discussion List
List archive
- From: Alexander Dutton <>
- To:
- Subject: [grouper-users] Web Services return 500, but have mostly done what I want
- Date: Tue, 29 Sep 2015 10:31:55 +0100
Hi all,
I'm playing with the web services, and just tried deleting a list of
groups. My user doesn't have enough privileges over all of them, so I
was expecting some to be denied.
The HTTP response has come back with a status code of 500 Internal
Server Error, yet has a fully-formed response body, including a message
that says "There were 17 successes and 1 failures of deleting groups.".
I would have expected to only have seen a 500 when something has
actually gone wrong server side, and probably a 200 in this case.¹
I suspect there are other instances of this in the REST API, but haven't
checked. Would it make sense to harmonise on 200 when nothing has
actually gone unexpectedly wrong?
Best regards,
Alex
¹ There's also a 207 Multi-Status code that could be used to indicate a
partial success, but that's a bit too WebDAV specific.
--
Alexander Dutton
Linked Open Data Architect; data.ox.ac.uk, OxPoints
Data and Information Architecture, IT Services
- [grouper-users] Web Services return 500, but have mostly done what I want, Alexander Dutton, 09/29/2015
- RE: [grouper-users] Web Services return 500, but have mostly done what I want, Chris Hyzer, 09/29/2015
- Re: [grouper-users] Web Services return 500, but have mostly done what I want, Alexander Dutton, 09/29/2015
- RE: [grouper-users] Web Services return 500, but have mostly done what I want, Chris Hyzer, 09/29/2015
- Re: [grouper-users] Web Services return 500, but have mostly done what I want, Alexander Dutton, 09/29/2015
- RE: [grouper-users] Web Services return 500, but have mostly done what I want, Chris Hyzer, 09/29/2015
- Re: [grouper-users] Web Services return 500, but have mostly done what I want, Alexander Dutton, 09/29/2015
- RE: [grouper-users] Web Services return 500, but have mostly done what I want, Chris Hyzer, 09/29/2015
- Re: [grouper-users] Web Services return 500, but have mostly done what I want, Alexander Dutton, 09/29/2015
- RE: [grouper-users] Web Services return 500, but have mostly done what I want, Chris Hyzer, 09/29/2015
Archive powered by MHonArc 2.6.16.