Closed diego-betto closed 8 years ago
No. Both of those conditions should be a 401
. Why do you want to change it?
Since the customer app needs these codes
Fail with an error, and respond with the status code in your error hander.
if (!user.verifyPassword(password)) {
var err = new Error('Forbidden');
err.status = 403;
return done(err);
}
Nice works like a charm, changed a little bit since using Restify error.status => error.statusCode
Thank you!
Hi, any way to send custom error codes? Something like
so for example
Any clue?
Thank you