diff --git a/lib/response.js b/lib/response.js index 17c300b..f6279e4 100644 --- a/lib/response.js +++ b/lib/response.js @@ -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); }