rename error code to status code.