refactor StatusCode