Returns an error when a request is malformed.
This function does not generate a change.
bad_data_err([message])
Argument | Type | Description |
---|---|---|
message | str (optional) | Alternative error message. |
An error value (in a client response, an error value will be packed as a string value with the error message).
This code shows bad_data_err():
bad_data_err();
Return value in JSON format
"unable to handle request due to invalid data"