Translate errormessages to html errorcodes.
npm install errorcodeAdd the status to an error.
Kind: inner method of errorcode
Returns: Error - error with the status.
Throws:
- Error when missing any argument.
| Param | Type | Description |
| --- | --- | --- |
| status | number | http status code. |
| error | Error | the error which the status will be appended. |
Kind: inner method of errorcode
| Param | Type | Description |
| --- | --- | --- |
| object | object | mapping a message to an errorcode |
Kind: inner method of errorcode
| Param | Type | Description |
| --- | --- | --- |
| error | object | with message |
*