[openstack-dev] [glance][api] Response when a illegal body is sent

Jay Pipes jaypipes at gmail.com
Thu Jul 23 16:13:43 UTC 2015

On 07/23/2015 10:53 AM, Bunting, Niall wrote:
> Hi,
> Currently when a body is passed to an API operation that explicitly
> does not allow bodies Glance throws a 500.
> Such as in this bug report:
> https://bugs.launchpad.net/glance/+bug/1475647 This is an example of
> a GET however this also applies to other requests.
> What should Glance do rather than throwing a 500, should it return a
> 400 as the user provided an illegal body

Yep, this.


More information about the OpenStack-dev mailing list