> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-support-migration.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Origin Errors

> No more 502 guesswork. See exactly why your origin failed in real time.

When your origin stops responding, you shouldn’t have to dig through layers of logs or guess whether it’s DNS, timeouts, or misconfiguration.

Origin Errors Monitoring gives you full visibility into failed origin requests, directly in the dashboard or via API.

Available for all users at no extra cost.

## Status Codes

* 400
* 416
* 500
* 502
* 504
* 508

## Error Codes

* http\_request\_exception
* http\_invalid\_range
* http\_request\_failure
* http\_timeout — request exceeded the **60-second** CDN request timeout
* http\_loop\_detected
* http\_invalid\_compression
* network\_socket\_exception
* network\_io\_error
* dns\_lookup
* notfound\_localdb
* error

## Dashboard

Browse and filter origin errors under Monitoring → Origin Errors to quickly identify where and why failures occurred. Each entry includes timestamp, edge region, pull zone ID, error type, and status code, helping you isolate the issue instantly.

<img src="https://mintcdn.com/bunnynet-cb9733c2-support-migration/w32H-OuMiEPPh72G/images/docs/df54714849709cfddab76e61c4b66c7fd2dc362789b6aa843b4c9385bf589266-image.png?fit=max&auto=format&n=w32H-OuMiEPPh72G&q=85&s=4e730dc6949590103be2eb59d2b91122" alt="" width="3424" height="1878" data-path="images/docs/df54714849709cfddab76e61c4b66c7fd2dc362789b6aa843b4c9385bf589266-image.png" />

<img src="https://mintcdn.com/bunnynet-cb9733c2-support-migration/RpQ-CUm87OlkPU-U/images/docs/b7f34f204e81212cf940c6d4abbacc33f5cec920a2dcb185ad2e99b2cc3f6545-image.png?fit=max&auto=format&n=RpQ-CUm87OlkPU-U&q=85&s=20bdeeebfb607f03a1fe669d0033ed0d" alt="" width="3424" height="1878" data-path="images/docs/b7f34f204e81212cf940c6d4abbacc33f5cec920a2dcb185ad2e99b2cc3f6545-image.png" />

## API Access

Access the same data programmatically to integrate with your monitoring or alerting systems.

Endpoint: *GET* `https://cdn-origin-logging.bunny.net/{pullZoneId}/{dateTime:MM-dd-yyyy}`

Example Response:

```json theme={null}
{
  "logs": [
    {
      "logId": "a6a6b755-b6a4-46be-b523-aa82a17d4bc5",
      "timestamp": 1728952065848,
      "log": "{\"RequestUrl\":\"/apikey\",\"PullZoneId\":308006,\"Message\":\"Origin DNS lookup failed...\",\"ErrorCode\":\"dns_lookup\",\"StatusCode\":502}",
      "labels": {
        "ErrorCode": "dns_lookup",
        "StatusCode": "502",
        "ServerZone": "CA"
      }
    }
  ]
}
```

Authenticate with your API key `AccessKey` or user JWT `Authorization`, and query by Pull Zone ID and date to retrieve recent origin error events.
