Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
correcting 500 server error to 400 client error
Browse files Browse the repository at this point in the history
  • Loading branch information
lirantal committed Jan 12, 2015
1 parent 5bccbdd commit 4871173
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/articles.server.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ exports.list = function(req, res) {
exports.articleByID = function(req, res, next, id) {

if (!mongoose.Types.ObjectId.isValid(id)) {
return res.status(500).send({
return res.status(400).send({
message: 'Article is invalid'
});
}
Expand Down

0 comments on commit 4871173

Please sign in to comment.