Permalink
Browse files

add .forbidden response property

  • Loading branch information...
tj committed Sep 4, 2012
1 parent 996cbfe commit 2341a99edff65056bce6e8def7c10eec0b7340ac
Showing with 2 additions and 0 deletions.
  1. +1 −0 lib/node/response.js
  2. +1 −0 lib/superagent.js
View
@@ -127,5 +127,6 @@ Response.prototype.setStatusProperties = function(status){
this.badRequest = 400 == status;
this.unauthorized = 401 == status;
this.notAcceptable = 406 == status;
+ this.forbidden = 403 == status;
this.notFound = 404 == status;
};
View
@@ -365,6 +365,7 @@
this.unauthorized = 401 == status;
this.notAcceptable = 406 == status;
this.notFound = 404 == status;
+ this.forbidden = 403 == status;
};
/**

0 comments on commit 2341a99

Please sign in to comment.