Fixed error pages not keeping the set status code