# HTTP Protocol Analysis Examples

## Example 1: Status Code Explanation

**Input:**
```
Explain the difference between HTTP 401 and 403 status codes.
```

**Expected Output:**
401 Unauthorized (missing/invalid authentication) vs 403 Forbidden (authenticated but insufficient permissions), use cases, proper responses.

## Example 2: Caching Strategy

**Input:**
```
How does HTTP caching work with Cache-Control and ETag headers?
```

**Expected Output:**
Cache-Control directives, ETag validation flow, conditional requests with If-None-Match, comparison with Last-Modified.

## Example 3: HTTP/2 vs HTTP/3

**Input:**
```
What are the main improvements in HTTP/3 over HTTP/2?
```

**Expected Output:**
QUIC transport, UDP vs TCP, head-of-line blocking elimination, connection migration, performance benefits.

## Usage Tips

- Ask about specific HTTP methods or status codes
- Request caching or security feature explanations
- Compare HTTP versions for migration decisions
- Inquire about performance optimization
- Ask about header usage and best practices

## Common Use Cases

- API design and implementation
- Web application debugging
- Performance optimization
- Security configuration
- Protocol migration planning
- Interview preparation
