[Pki-devel] [PATCH] 170 - fix Profile Resource to send correct responses on creation/modification

Ade Lee alee at redhat.com
Wed Nov 6 17:12:56 UTC 2013


oh, forgot - pushed to master.

On Wed, 2013-11-06 at 08:13 -0600, Endi Sukma Dewata wrote:
> On 11/5/2013 11:25 AM, Ade Lee wrote:
> > First of "rules of the road" patches.  Makes sure ProfileResource
> > returns correct return code for creation/modification.
> >
> > Ade
> 
> ACK.
> 
> There are actually some issues that need further discussion:
> 
> 1. Should we use HTTP 409 (Conflict) for errors caused by entry already 
> exists?
> http://stackoverflow.com/questions/3825990/http-response-code-for-post-when-resource-already-exists
> 
> 2. If the request is OK but the server won't execute an operation (e.g. 
> profile status doesn't allow it), should we return HTTP 403 (Forbidden)? 
> Or maybe HTTP 422 (Unprocessable Entity)?
> http://stackoverflow.com/questions/3290182/rest-http-status-codes
> 





More information about the Pki-devel mailing list