Clean up status codes