Revert "[Fix][#33829] Use 404 response codes when server URL rewriting is enabled. Fixes #3739"

This reverts commit 0a3d34d4f43b7a3538be880c229d8b0e5270ae3e.
[Fix][#33829] Use 404 response codes when server URL rewriting is enabled. Fixes #3747