The context looks fine to me. I am not clear about how you set up the /httperror/404 page, it seems like you want to redirect to 404 by the App instead of the web server. If you want to custom OLS error page, please check https://openlitespeed.org/kb/custom-error-page/. About the 400 error, no...