JSON response on 404 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: JSON response on 404 (/showthread.php?tid=76666) |
JSON response on 404 - thingNumber1 - 06-07-2020 I am creating an API and I need to response always with a JSON, including when the answer is a 404 message. Is this possible? RE: JSON response on 404 - thingNumber1 - 06-07-2020 Yes, the answer is here: https://codeigniter.com/user_guide/incoming/routing.html?highlight=set404override#id27 |