This is the ThingsDB documentation for version v0, click here for the latest version!
Returns an error when the client or user is missing the required privileges.
This function does not generate an event.
forbidden_err([message])
Argument | Type | Description |
---|---|---|
message | str (optional) | Alternative error message. |
An error value.
This code shows forbidden_err():
forbidden_err();
Return value in JSON format
{
"!": "forbidden_err()",
"error_code": -55,
"error_msg": "forbidden (access denied)"
}