[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-31 (世界標準時間)。"],[[["\u003cp\u003eThe document outlines the \u003ccode\u003eCode\u003c/code\u003e enum, which defines canonical error codes for gRPC APIs, recommending the most specific code be used when multiple codes apply.\u003c/p\u003e\n"],["\u003cp\u003eThere are various \u003ccode\u003eCode\u003c/code\u003e enum values detailed in the content, such as \u003ccode\u003eOK\u003c/code\u003e, \u003ccode\u003eCANCELLED\u003c/code\u003e, \u003ccode\u003eUNKNOWN\u003c/code\u003e, \u003ccode\u003eINVALID_ARGUMENT\u003c/code\u003e, \u003ccode\u003eNOT_FOUND\u003c/code\u003e, and more, each with a corresponding HTTP mapping and a specific context in which it should be used.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eStatus\u003c/code\u003e message type, suitable for REST and RPC APIs, is described, and it includes the fields \u003ccode\u003ecode\u003c/code\u003e (an enum value from \u003ccode\u003egoogle.rpc.Code\u003c/code\u003e), \u003ccode\u003emessage\u003c/code\u003e (a developer-facing error message), and \u003ccode\u003edetails[]\u003c/code\u003e (a list of error detail messages).\u003c/p\u003e\n"],["\u003cp\u003eThe document explains when to choose between similar error codes, such as the difference between \u003ccode\u003eFAILED_PRECONDITION\u003c/code\u003e, \u003ccode\u003eABORTED\u003c/code\u003e, and \u003ccode\u003eUNAVAILABLE\u003c/code\u003e or the distinction between \u003ccode\u003eINVALID_ARGUMENT\u003c/code\u003e and \u003ccode\u003eOUT_OF_RANGE\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Package google.rpc\n\nIndex\n-----\n\n- [Code](/distributed-cloud/hosted/docs/latest/gdch/apis/vertex-ai/translation/rpc/google.rpc#google.rpc.Code) (enum)\n- [Status](/distributed-cloud/hosted/docs/latest/gdch/apis/vertex-ai/translation/rpc/google.rpc#google.rpc.Status) (message)\n\nCode\n----\n\nThe canonical error codes for gRPC APIs.\n\nSometimes multiple error codes might apply. Services should return the most specific error code that applies. For example, prefer `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply. Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.\n\nStatus\n------\n\nThe `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details.\n\nYou can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors)."]]