I am trying to create a custom 404 error for my website. I am testing this out using XAMPP on Windows.
My directory structure is as follows:
ErrorDocument 404 error\404page.html
ErrorDocument 404 /error/404page.html
ErrorDocument 404 /JinPortfolio/error/404page.html
When you corrected it in your second try, the reason you see that page instead is because
http://localhost/error/404page.html doesn't exist, hence the bit about there being a 404 error in locating the error handling document.