[
https://issues.apache.org/jira/browse/STRATOS-996?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14492795#comment-14492795
]
Chamila de Alwis commented on STRATOS-996:
------------------------------------------
This issue is still there in 4.1.0-beta where 200, 204 and even 201 is sent in
some DELETE operations. The response codes for DELETE operations should follow
the standard mentioned in [1].
{quote}
If a DELETE method is successfully applied, the origin server SHOULD send a 202
(Accepted) status code if the action will likely succeed but has not yet been
enacted, a 204 (No Content) status code if the action has been enacted and no
further information is to be supplied, or a 200 (OK) status code if the action
has been enacted and the response message includes a representation describing
the status.
{quote}
[1] - http://tools.ietf.org/html/rfc7231#section-4.3.5
> Standard 204 response not returned when deleting application properties
> -----------------------------------------------------------------------
>
> Key: STRATOS-996
> URL: https://issues.apache.org/jira/browse/STRATOS-996
> Project: Stratos
> Issue Type: Sub-task
> Components: REST API
> Affects Versions: 4.1.0 M4, 4.1.0 Beta
> Reporter: Mariangela Hills
>
> In Stratos when the DELETE method is executed generally the response returned
> is Response.noContent, which corresponds to 204. However, in the following
> method the response returned is Response.ok, which corresponds to 200. This
> needs to be changed to 204
> @DELETE
> @Path("application/{application_id}")
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)