I am currently using ErrorDocument directive for my 404's in the below format:
ErrorDocument 404 http://www.domain.com/404.php
This does the task but the thing is when I did a header check on the website for any 404 pages they have a 302.
The thing is I don't know exactly what they should have in their header to qualify as the best practice for the website. Should they be returning a 302 or a 301 or should it be 404 itself!
If it should be a 404, I guess using a relative link with the ErrorDocument would suffice but for the 301, I do not know the code for it.