I check the Router status with Router::getStatusCode(). In the case of 404 status, it generates an exception because getStatusCode() returns null (should return an int). That is because StatusCode wasn't set.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
Description
I faced the issue in my custom onError function.
I check the Router status with Router::getStatusCode(). In the case of 404 status, it generates an exception because getStatusCode() returns null (should return an int). That is because StatusCode wasn't set.
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?