From 88aceea4f4e0ad2c30713b1edde76a57fe882966 Mon Sep 17 00:00:00 2001 From: wmkroo <77324574+wmkroo@users.noreply.github.com> Date: Mon, 13 Dec 2021 15:28:03 +0000 Subject: [PATCH] Update README.md restCode must be a string as it defaults to the name of your error constructor --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ce33947..140b597 100644 --- a/README.md +++ b/README.md @@ -493,7 +493,7 @@ are identical to the restify-errors adds additional options for the final signature: -* `options.restCode` {Number} - a description code for your Error. This is used +* `options.restCode` {String} - a description code for your Error. This is used by restify to render an error when it is directly passed to `res.send()`. By default, it is the name of your error constructor (e.g., the restCode for a BadDigestError is BadDigest).