The error document definitely exists, the problem only occurs if there is a value in the query string.
In reply to Re^9: Set HTTP Status code by molybtek in thread Set HTTP Status code by molybtek