Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

500 to indicate server error

  • Loading branch information...
commit 5194eb8298b204c0f7855f6dd340164f893995d4 1 parent a6620cb
@rgarcia rgarcia authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/http/routes/json.js
View
2  lib/http/routes/json.js
@@ -139,7 +139,7 @@ exports.createJob = function(req, res) {
job.save(function(err, resp) {
if (err)
- return res.send({ error: err.message }, 400);
+ return res.send({ error: err.message }, 500);
res.send({ message: 'job ' + job.id + ' created' });
});
};
Please sign in to comment.
Something went wrong with that request. Please try again.