Class InternalServerException

All Implemented Interfaces:
io.agentscope.core.model.ModelHttpException, Serializable

public class InternalServerException extends OpenAIException
Exception thrown when the server encounters an internal error (HTTP 5xx).

This indicates a problem on OpenAI's side. Consider retrying the request after a brief wait.

Common status codes:

  • 500 - Internal Server Error
  • 502 - Bad Gateway
  • 503 - Service Unavailable
  • 504 - Gateway Timeout
See Also:
  • Constructor Details

    • InternalServerException

      public InternalServerException(String message, int statusCode, String errorCode, String responseBody)