Javelin Proxy
Javelin introduces Super Resilience Proxy, a robust error-handling capability designed to improve system availability and gracefully degrade when internal components fail. By distinguishing between acceptable failure states and recoverable internal errors, Javelin ensures that end-user experience is protected even in the face of unexpected faults.
π Error Categorizationβ
Javelin classifies failures into two distinct categories:
β Acceptable Failure Statesβ
Structured rejections that are safe to expose to users:
- Guardrail policy violations
- Custom route not found
- Custom provider not found
These are returned as structured 4xx responses based on policy configuration or upstream logic.
π Recoverable Internal Errorsβ
Unexpected internal issues that should not be exposed to users:
- JSON marshaling/unmarshaling errors
- Missing or unknown model entries in universal route specs
- Internal microservice or admin API unavailability
- Guardrail model access failures or timeouts
π Automatic Fallback to Proxy Modeβ
When a recoverable internal error is detected, Javelin will automatically fallback to proxy modeβallowing the request to pass through transparently instead of returning a 5xx error.
β Benefits:β
- Increased system resilience
- Higher availability
- Better user experience with fewer disruptions
This graceful degradation strategy ensures requests are completed even when internal enrichment or enforcement logic encounters issues.
π Metrics & Observability Integrationβ
All fallback proxy events are:
- Logged with enriched metadata
- Surfaced in Observability traces with full context
- Useful for debugging, detection, and incident analysis
This enables teams to monitor fallback behavior, understand root causes, and optimize reliability over time.
π Noteβ
Fallback behavior applies only to recoverable internal errors. Requests failing due to valid guardrail or policy violations will still return structured 4xx responses as per your configuration or upstream logic