[
https://issues.apache.org/jira/browse/STRATOS-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Lahiru Sandaruwan resolved STRATOS-996.
---------------------------------------
Resolution: Fixed
Resolving this since we are returning a message with delete request and 200(OK)
is correct with that.
> 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
> Fix For: FUTURE
>
>
> 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}")
> The response codes for the DELETE operations should follow the standard as
> follows.
> 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. [1]
> [1] - http://tools.ietf.org/html/rfc7231#section-4.3.5
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)