# Read flight history response headers



Operation: headFlights
HEAD /api/flights.json

Access: anonymous. Automatic retries: none. Redirects: manual. Request body limit: 0 bytes.
Default timeout: 30 seconds. Response limit: 16 MiB. Pagination is opt-in and bounded; an exhausted bound reports incomplete execution.

[HTML reference](/developers/api/headFlights) · [Authoritative schemas](/api/openapi.json)

## Wire contract

```json
{
  "operationId": "headFlights",
  "summary": "Read flight history response headers",
  "tags": [
    "Flights"
  ],
  "responses": {
    "200": {
      "description": "Headers only"
    },
    "503": {
      "description": "Flight history unavailable",
      "headers": {
        "Problem-Details": {
          "description": "draft-nottingham-problem-header-00 Structured Fields Dictionary. Carries type and Display String title; JSON problem content wins conflicts. Occurrence detail and instance remain in content.",
          "schema": {
            "type": "string",
            "maxLength": 4096
          }
        }
      }
    }
  }
}
```

## Synthetic examples

### curl

```bash
curl --fail-with-body --max-time 30 --max-filesize 16777216 --head 'https://irvinebroque.com/api/flights.json'
```

### TypeScript

```typescript
import { PublicApi } from '@irvinebroque/public-api';
const api = new PublicApi();
const result = await api.flights.listHead({});
console.log(result.status, result.headers.get('content-type')); // Keep transient capabilities in memory.
```

### CLI

```bash
irvinebroque flights list-head
```
