To answer this we have gathered up the relevant section of the Apache-FAQ to help clarify matters. Have a look at this:
Custom Error Documents