[ 
https://issues.apache.org/jira/browse/STRATOS-1270?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14494413#comment-14494413
 ] 

Chamila de Alwis commented on STRATOS-1270:
-------------------------------------------

Hi Mary,

It is allowed to return a 200 Ok status with a content body for a successful 
DELETE operation. In this case the content body contains the message that is 
displayed in the UI. Therefore 204 No Content would not serve the purpose. 

I can't see the Location header field when executing this method through CURL. 
Perhaps you can provide specifically what the headers you are receiving?

Regards,
Chamila

> Wrong HTTP output - DELETE /deploymentPolicies/{deploymentPolicyId}
> -------------------------------------------------------------------
>
>                 Key: STRATOS-1270
>                 URL: https://issues.apache.org/jira/browse/STRATOS-1270
>             Project: Stratos
>          Issue Type: Sub-task
>          Components: REST API
>    Affects Versions: 4.1.0 Alpha
>            Reporter: Mariangela Hills
>
> The following issues were identified when executing the DELETE HTTP method 
> with the /deploymentPolicies/{deploymentPolicyId} REST API resource.
> # Normally the 204 HTTP status code should be returned when deleting. 
> However, in this situation the 201 and 200 HTTP status codes are returned, 
> which is incorrect. 
> # When deleting an artifact the location header URL should not be returned. 
> However, in this situation it is returned.



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

Reply via email to