The server answers with JSON. An error answer has "result":"ERROR" and a message, for example Error Key (wrong key) or Action not found.
"result":"ERROR"
Error Key
Action not found