{"action":"created","issue":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3622","labels_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3622/labels{/name}","comments_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3622/comments","events_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3622/events","html_url":"https://github.com/tomchristie/django-rest-framework/issues/3622","id":116112383,"number":3622,"title":"Status code \"200 No Content\" on DELETE Method ","user":{"login":"H0neyBadger","id":7838259,"avatar_url":"https://avatars.githubusercontent.com/u/7838259?v=3","gravatar_id":"","url":"https://api.github.com/users/H0neyBadger","html_url":"https://github.com/H0neyBadger","followers_url":"https://api.github.com/users/H0neyBadger/followers","following_url":"https://api.github.com/users/H0neyBadger/following{/other_user}","gists_url":"https://api.github.com/users/H0neyBadger/gists{/gist_id}","starred_url":"https://api.github.com/users/H0neyBadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/H0neyBadger/subscriptions","organizations_url":"https://api.github.com/users/H0neyBadger/orgs","repos_url":"https://api.github.com/users/H0neyBadger/repos","events_url":"https://api.github.com/users/H0neyBadger/events{/privacy}","received_events_url":"https://api.github.com/users/H0neyBadger/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-10T14:04:02Z","updated_at":"2015-11-10T14:07:50Z","closed_at":"2015-11-10T14:07:50Z","body":"\r\nI have a strange behavior when I call the DELETE method.\r\nThe api didn’t return the right status code = ***204***\r\n\r\nThe browsable API display the correct status \"***HTTP 204 No Content***\"\r\n```\r\nHTTP 204 No Content\r\nContent-Type: application/json\r\nAllow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS\r\nVary: Accept\r\n```\r\n\r\nHowever, we can read the status code ***200*** in apache logs\r\n```\r\n\"DELETE /accounts/drf_dev/ HTTP/1.1\" 200\r\n```\r\n\r\nI got this issue with ```APITestCase  client.delete()```  and ```curl --request DELETE```.\r\n\r\nDid I miss something with the status codes?\r\n\r\ndjangorestframework==3.3.1\r\nDjango==1.8.6\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/comments/155430015","html_url":"https://github.com/tomchristie/django-rest-framework/issues/3622#issuecomment-155430015","issue_url":"https://api.github.com/repos/tomchristie/django-rest-framework/issues/3622","id":155430015,"user":{"login":"tomchristie","id":647359,"avatar_url":"https://avatars.githubusercontent.com/u/647359?v=3","gravatar_id":"","url":"https://api.github.com/users/tomchristie","html_url":"https://github.com/tomchristie","followers_url":"https://api.github.com/users/tomchristie/followers","following_url":"https://api.github.com/users/tomchristie/following{/other_user}","gists_url":"https://api.github.com/users/tomchristie/gists{/gist_id}","starred_url":"https://api.github.com/users/tomchristie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomchristie/subscriptions","organizations_url":"https://api.github.com/users/tomchristie/orgs","repos_url":"https://api.github.com/users/tomchristie/repos","events_url":"https://api.github.com/users/tomchristie/events{/privacy}","received_events_url":"https://api.github.com/users/tomchristie/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T14:07:49Z","updated_at":"2015-11-10T14:07:49Z","body":"The browsable API content will masquerade as 204, but actually return a 200 (otherwise the page simply won't display). If any other renderer is used then you'll actually see a proper 204 response."}}