Alt-Svc Protocol Errors — HTTP Alternative Service Connection Failures
About Alt-Svc Protocol Errors
Fix Alt-Svc header errors causing failed protocol upgrades to HTTP/3 QUIC, incorrect alternative service routing, and fallback failures. This guide covers everything you need to know about this topic, including common causes, step-by-step solutions, and answers to frequently asked questions.
Here are the key things to understand: Alt-Svc (Alternative Services) allows servers to advertise that a resource is available via a different protocol or host. Commonly used to upgrade connections from HTTP/2 to HTTP/3 (QUIC). The header format is: Alt-Svc: h3=":443"; ma=86400 (HTTP/3 on port 443, max-age 24 hours). Browsers cache Alt-Svc entries and attempt the alternative service on subsequent requests. Failed alternative service connections should fall back to the original protocol transparently. Understanding these fundamentals will help you diagnose and resolve this issue more effectively.
The most common reasons this occurs include: Firewall blocking UDP traffic on port 443 required for HTTP/3 QUIC connections. Alt-Svc advertising a service that is not actually available or configured. QUIC server certificate not matching the original hostname. Alt-Svc max-age too long, causing clients to attempt a service that has been decommissioned. Identifying the root cause is the first step toward finding the right solution.
To resolve this, follow these recommended steps: Verify HTTP/3 QUIC is properly configured and accessible: test with 'curl --http3 https://yourdomain.com'. Ensure firewall allows UDP traffic on the port specified in Alt-Svc (typically 443). Set a reasonable max-age (ma): start with 3600 (1 hour) and increase after confirming stability. Use 'Alt-Svc: clear' to remove cached alternative services when decommissioning HTTP/3. Monitor fallback rates — high fallback indicates the alternative service is not reliably reachable. If these steps do not resolve the issue, consider consulting additional resources or a qualified professional.
This article is part of our HTTP Status Codes collection on Error Codes Wiki. We provide comprehensive, up-to-date information to help you find solutions quickly.
Quick Answer
What is Alt-Svc used for?
Alt-Svc primarily enables protocol upgrades from HTTP/2 to HTTP/3 (QUIC). It tells browsers that the same content is available via a faster protocol, allowing them to switch transparently.
Overview
Fix Alt-Svc header errors causing failed protocol upgrades to HTTP/3 QUIC, incorrect alternative service routing, and fallback failures.
Key Details
- Alt-Svc (Alternative Services) allows servers to advertise that a resource is available via a different protocol or host
- Commonly used to upgrade connections from HTTP/2 to HTTP/3 (QUIC)
- The header format is: Alt-Svc: h3=":443"; ma=86400 (HTTP/3 on port 443, max-age 24 hours)
- Browsers cache Alt-Svc entries and attempt the alternative service on subsequent requests
- Failed alternative service connections should fall back to the original protocol transparently
Common Causes
- Firewall blocking UDP traffic on port 443 required for HTTP/3 QUIC connections
- Alt-Svc advertising a service that is not actually available or configured
- QUIC server certificate not matching the original hostname
- Alt-Svc max-age too long, causing clients to attempt a service that has been decommissioned
Steps
- 1Verify HTTP/3 QUIC is properly configured and accessible: test with 'curl --http3 https://yourdomain.com'
- 2Ensure firewall allows UDP traffic on the port specified in Alt-Svc (typically 443)
- 3Set a reasonable max-age (ma): start with 3600 (1 hour) and increase after confirming stability
- 4Use 'Alt-Svc: clear' to remove cached alternative services when decommissioning HTTP/3
- 5Monitor fallback rates — high fallback indicates the alternative service is not reliably reachable