Uses of Enum Class
org.mockserver.llm.LlmErrorBodies.Kind
Packages that use LlmErrorBodies.Kind
-
Uses of LlmErrorBodies.Kind in org.mockserver.llm
Methods in org.mockserver.llm that return LlmErrorBodies.KindModifier and TypeMethodDescriptionstatic LlmErrorBodies.KindLlmErrorBodies.kindForStatus(Integer status) Derive theLlmErrorBodies.Kindfrom an HTTP status code. 429 →RATE_LIMIT; 529 →OVERLOADED; any other 5xx →SERVER_ERROR; any 4xx (other than 429) →SERVER_ERROR(treated as a generic provider error envelope).static LlmErrorBodies.KindReturns the enum constant of this class with the specified name.static LlmErrorBodies.Kind[]LlmErrorBodies.Kind.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.mockserver.llm with parameters of type LlmErrorBodies.KindModifier and TypeMethodDescriptionstatic StringLlmErrorBodies.bodyFor(Provider provider, LlmErrorBodies.Kind kind, int status, String message) Produce the provider-specific JSON error body for the given provider and kind, ornullwhen the provider isnullor has no specific shape (the caller then uses the generic fallback body).