updated statusCode to code