Skip to content

Commit

Permalink
HttpClientResponse.isSuccess
Browse files Browse the repository at this point in the history
  • Loading branch information
richcollins committed Mar 29, 2012
1 parent de95dee commit 9d3c165
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/HttpClientResponse.js
Expand Up @@ -14,6 +14,12 @@ oden.HttpClientResponse = ideal.Observable.clone().newSlots({
return this.nodeResponse().statusCode;
},

isSuccess: function()
{
var code =this.statusCode();
return code >= 200 && code < 300;
},

start: function()
{
var self = this;
Expand Down

0 comments on commit 9d3c165

Please sign in to comment.