add status codes to redirect, and a status code in an exception though i forget why.