Steps to reproduce the issue
Run API GET call /users/levels/ID with non-existing ID, e.g.
- Get Joomla! API Token and set as environment variable
TOKEN
curl -kH "Authorization: Bearer $TOKEN" https://host.docker.internal:7154/api/index.php/v1/users/levels/4711
Expected result
HTTP Status 404 and error message like not found
Actual result
HTTP Status 500 Internal server error
System information (as much as possible)
- JBT with Joomla 5.4-dev branch
Additional comments
Found in testing #46080
Steps to reproduce the issue
Run API GET call
/users/levels/IDwith non-existing ID, e.g.TOKENcurl -kH "Authorization: Bearer $TOKEN" https://host.docker.internal:7154/api/index.php/v1/users/levels/4711Expected result
HTTP Status 404 and error message like not found
Actual result
HTTP Status 500 Internal server error
System information (as much as possible)
Additional comments
Found in testing #46080