use '201 Created' when 'status' is 'downloaded'

This commit is contained in:
jomo 2016-02-03 02:49:43 +01:00
parent f2dda3b939
commit f088c27012

View File

@ -91,7 +91,7 @@ module.exports = function(request, response, result) {
} else {
if (result.body) {
headers.Etag = etag;
response.writeHead(200, headers);
response.writeHead(result.status === 2 ? 201 : 200, headers);
} else {
response.writeHead(404, headers);
}