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";