400 and 500 error pages implemented