Set status code to internal server error on error pages