Permalink
Browse files

HttpClientResponse.isSuccess

  • Loading branch information...
1 parent de95dee commit 9d3c165d05fc8bf5fe7af64fbad2781226c0c4e3 @richcollins committed Mar 29, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 lib/HttpClientResponse.js
@@ -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;

0 comments on commit 9d3c165

Please sign in to comment.