bad_data_err

Returns an error when a request is malformed.

This function does not generate an event.

Function

bad_data_err([message])

Arguments

Argument Type Description
message str (optional) Alternative error message.

Return value

An error value.

Example

This code shows bad_data_err():

bad_data_err();

Return value in JSON format

{
    "!": "bad_data_err()",
    "error_code": -53,
    "error_msg": "unable to handle request due to invalid data"
}