[Pki-devel] [PATCH] 170 - fix Profile Resource to send correct responses on creation/modification
Endi Sukma Dewata
edewata at redhat.com
Wed Nov 6 14:13:37 UTC 2013
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
--
Endi S. Dewata
More information about the Pki-devel
mailing list