i think we want to call `ensure_date_header` here as well. i don't think it's being included with `render_error()` atm.