1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-08-13 19:42:25 +03:00

add js doc for httpStatus

This commit is contained in:
David Baker
2015-07-16 10:18:51 +01:00
parent 13f72e1df2
commit ff1b137750

View File

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