added 404 and 301 to status codes