404 and 410 pages now return proper response code