Automatically return 500 on unhandled exception - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: Automatically return 500 on unhandled exception (/showthread.php?tid=39361) |
Automatically return 500 on unhandled exception - El Forum - 03-08-2011 [eluser]Unknown[/eluser] When unhandled exceptions in my code occur, Code Igniter returns HTTP status 200 in AJAX calls. I really need it to return status 500. Is there a config setting somewhere to get this behavior? Automatically return 500 on unhandled exception - El Forum - 03-08-2011 [eluser]InsiteFX[/eluser] No you would need to extend the CodeIgniter Exceptions class. InsiteFX |