Skip to main content

Overview

When a generation task fails (status is FAILURE) or a submit/query request is rejected, the response may include a fail_code field. Use this code for programmatic handling; fail_reason provides the human-readable message. Names that include <Parameter> are templates. The actual code substitutes the parameter name, for example MissingParameter.Prompt.

Codes