[ 
https://issues.apache.org/jira/browse/QPID-6449?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Keith Wall updated QPID-6449:
-----------------------------
    Fix Version/s: 6.0 [Java]

> [Java Broker] Change REST interfaces to return 422 status code from 
> create/update requests when provided attribute values are invalid or required 
> attributes are missing
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-6449
>                 URL: https://issues.apache.org/jira/browse/QPID-6449
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Broker
>    Affects Versions: 0.30, 0.32
>            Reporter: Alex Rudyy
>            Assignee: Alex Rudyy
>             Fix For: 6.0 [Java]
>
>
> At the moment 409 status code is returned for almost every client error.
> In order to distinguish validation failures from real conflicts 422 status 
> code can be returned for the former.
> 422 status code will be returned when invalid attributes values or not all 
> required attributes are provided in REST requests to create or update 
> configured object
>  
> {quote}
> The 422 (Unprocessable Entity) status code means the server understands the 
> content type of the request entity (hence a 415(Unsupported Media Type) 
> status code is inappropriate), and the syntax of the request entity is 
> correct (thus a 400 (Bad Request) status code is inappropriate) but was 
> unable to process the contained instructions. For example, this error 
> condition may occur if an XML request body contains well-formed (i.e., 
> syntactically correct), but semantically erroneous, XML instructions.
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to