You interact with the script via POST/GET request. When the request result in any error, a JSON object is returned with the error message as value of the error key ...