normalize status code