add support for 40x, 50x and POST pages