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

Commit

Permalink
fix(status): fixed bug with empty payload for 4xx errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Thierry Templier committed Jul 14, 2015
1 parent 4ab501d commit 5341d63
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/data.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,10 @@ data.Status = function(code, message) {
this.reasonPhrase = http.STATUS_CODES[code];
if (message != null) {
this.message = message;
this.description = message;
} else {
this.message = this.reasonPhrase;
this.description = this.reasonPhrase;
}
};

Expand Down

0 comments on commit 5341d63

Please sign in to comment.