I'm creating a rest api using codeigniter 3 and it's running fine,
but I'm having problems with how to display
{"status":false,"error":"Invalid API key "}on the client side and on the server side,
so that when Invalid key can be sent "api key invalid" message to user client