Welcome Guest, Not a member yet? Register   Sign In
CurlRequest ignore exception
#1

I would like to work with the statuses and the body of the JSON response. But the 400-500 status stops the request. Is it possible to implement this? 

For example, there is no post in the database, a PageNotFoundException + JSON is created in the body. In JS/PHPUnit, can I read the 404 status and decode the body with custom message?
Simple CI 4 project for beginners codeigniter-expenses
Reply
#2

See https://codeigniter4.github.io/CodeIgnit...ttp-errors
Reply
#3

Thanks, for some reason I missed it at the docs
Simple CI 4 project for beginners codeigniter-expenses
Reply




Theme © iAndrew 2016 - Forum software by © MyBB