From ff1b137750ef30499b8fb9ab15227cb0e05bf875 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 16 Jul 2015 10:18:51 +0100 Subject: [PATCH] add js doc for httpStatus --- lib/http-api.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/http-api.js b/lib/http-api.js index 100577d71..cb082d6b3 100644 --- a/lib/http-api.js +++ b/lib/http-api.js @@ -414,6 +414,7 @@ var requestCallback = function(defer, userDefinedCallback, onlyData) { * @prop {string} name The Matrix 'errcode' value, e.g. "M_FORBIDDEN". * @prop {string} message The Matrix 'error' value, e.g. "Missing token." * @prop {Object} data The raw Matrix error JSON used to construct this object. + * @prop {integer} httpStatus The numeric HTTP status code given */ module.exports.MatrixError = function MatrixError(errorJson) { this.name = errorJson.errcode || "Unknown error code";