302 http code changed, 307 http code added in code_header() function