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?