clearing headers to 500