{
"title": "CodeIgniter\\Exceptions\\PageNotFoundException",
"type": "CodeIgniter\\Exceptions\\PageNotFoundException",
"code": 404,
"message": "Can't find a route for 'post: usuarios/nuevoss'.",
"file": "C:\\Users\\xonip\\www\\local_html\\macc\\vendor\\codeigniter4\\framework\\system\\CodeIgniter.php",
"line": 966,
"trace": [
{
"file": "C:\\Users\\xonip\\www\\local_html\\macc\\vendor\\codeigniter4\\framework\\system\\CodeIgniter.php",
"line": 966,
"function": "forPageNotFound",
"class": "CodeIgniter\\Exceptions\\PageNotFoundException",
"type": "::"
},
{
"file": "C:\\Users\\xonip\\www\\local_html\\macc\\vendor\\codeigniter4\\framework\\system\\CodeIgniter.php",
"line": 362,
"function": "display404errors",
"class": "CodeIgniter\\CodeIgniter",
"type": "->"
},
{
"file": "C:\\Users\\xonip\\www\\local_html\\macc\\public\\index.php",
"line": 79,
"function": "run",
"class": "CodeIgniter\\CodeIgniter",
"type": "->"
},
{
"file": "C:\\Users\\xonip\\www\\local_html\\macc\\vendor\\codeigniter4\\framework\\system\\Commands\\Server\\rewrite.php",
"line": 47,
"args": [
"C:\\Users\\xonip\\www\\local_html\\macc\\public\\index.php"
],
"function": "require_once"
}
]
}
The response code that CI should send is 404.
PHP Version
8.2
CodeIgniter4 Version
4.4.1
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter)Which operating systems have you tested for this bug?
Windows
Which server did you use?
apache
Database
No response
What happened?
Codeigniter 4.4.1 responds with code 200 OK when a Fetch request is made even if the route does not exist.
Steps to Reproduce
Expected Output
The response code that CI should send is 404.
since the route 'usuarios/nuevoss' does not exist in the route declarations.
Anything else?
No response