![]() |
API Response Exception in production environment - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: API Response Exception in production environment (/showthread.php?tid=82171) |
API Response Exception in production environment - Thiaxl - 06-20-2022 I can't return a response in the API when a try catch exception occurs. It always returns a blank response. Is it possible to return a json in an exception in the API Response Trait in the production environment? ![]() RE: API Response Exception in production environment - kenjis - 06-22-2022 Quote: Is it possible to return a json in an exception in the API Response Trait in the production environment? Yes. PHP Code: <?php Code: bash-3.2$ curl http://localhost:8080/ |