atria-model-gateway error management

This document includes the different errors returned by atria-model-gateway

Error descriptions

InvalidModelParam

  • description: One or more parameters provided for the model are invalid. Please verify the parameter names and values.
  • message: Specific and descriptive text of the error.
  • http status: 400

ModelFilterContent

  • description: The response was filtered due to the prompt triggering Azure OpenAI’s content management policy.
  • message: Specific and descriptive text of the error.
  • http status: 400

InvalidPrompt

  • description: The prompt format is incorrect or contains unsupported characters. Ensure it is a valid string and is adhered to formatting guidelines.
  • message: Specific and descriptive text of the error.
  • http status: 400

ModelNotFound

  • description: The specified model does not exist or is not available for you.
  • message: Specific and descriptive text of the error.
  • http status: 400

ContextLengthExceeded

  • description: The message sent (including prompt + previous messages) exceeds the token limit of the model. Reduce the size of the prompt or the conversation history.
  • message: Specific and descriptive text of the error.
  • http status: 400

InjectionAttempt

  • description: Injection attempt detected. The request appears to contain input designed to manipulate the system’s behavior. This request has been blocked for security reasons.
  • message: Specific and descriptive text of the error.
  • http status: 400

InternalError

  • description: Incoming HTTP request produces an internal error.
  • message: Specific and descriptive text of the error.
  • http status: 500

Unauthorized

  • description: Incoming HTTP request authorization is not valid.
  • message: Specific and descriptive text of the error.
  • http status: 500

RequestTimeout

  • description: The server has decided to close the connection rather than continue waiting. In the headers, the field retry-after is included, which is the waiting time for retrying again.
  • message: Specific and descriptive text of the error.
  • http status: 500

QuotaError

  • description: Incoming HTTP request needs more quota. In the headers, the field retry-after is included, which is the waiting time for retrying again.
  • message: Specific and descriptive text of the error.
  • http status: 500

AuraError

  • description: Generic error.
  • message: Specific and descriptive text of the error.
  • http status: 500