deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Lutterkort <lut...@redhat.com>
Subject Re: [PATCH core 2/4] CIMI: Capture the validation errors and advertise them as HTTP 400
Date Thu, 07 Feb 2013 19:19:57 GMT
On Thu, 2013-02-07 at 13:52 +0100, mfojtik@redhat.com wrote:
> From: Michal Fojtik <mfojtik@redhat.com>
> 
> In case when client sent scrumbed XML or JSON body, this patch
> will make sure we send 'HTTP 400 - Bad Request' back instead of
> horrible looking 500 error.
> 
> This patch also properly advertise the ValidationError in case
> when client want to create CIMI resource but the validation conditions
> are not met.

Heh .. ok; should have looked at all the patches first. That addresses a
lot of what I said about reporting errors. Still, would be nice if we
reported all validation errors in one shot.

David



Mime
View raw message