update status codes

This commit is contained in:
Simon Tokumine 2011-11-21 22:29:35 +00:00
parent 8730f28509
commit 4347589826

View File

@ -32,7 +32,7 @@ var CartodbWindshaft = function(serverOptions) {
},
function(err, data){
if (err){
res.send(err.message, 400);
res.send(err.message, 500);
} else {
res.send({infowindow: data}, 200);
}
@ -50,7 +50,7 @@ var CartodbWindshaft = function(serverOptions) {
},
function(err, data){
if (err){
res.send(err.message, 400);
res.send(err.message, 500);
} else {
res.send({map_metadata: data}, 200);
}