Description
Description
I noticed that something changed between 5.04 and 5.05 that is now causing the \Cake\Http\Exception\NotFoundException
to use the error500 template instead of the error400 template, at least in my unit tests. I have confirmed the error message that is associated with the specific 404 error is there, it's just using the wrong template.
I would open a PR, but I still haven't been able to track down exactly which part of the code changed, or if I have something in my code that could be causing this. I also went through the changeling between 5.04 and 5.05, and didn't see anything that stood out that would cause this.
As a background, this is a new application, written only on CakePHP 5, so it's not ported from 4.x
CakePHP Version
5.04 ... 5.05
PHP Version
8.2.14