[ https://issues.apache.org/jira/browse/STRATOS-996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lahiru Sandaruwan reopened STRATOS-996: --------------------------------------- Seems some improvements can be done still. > 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}") > 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)