CDN Status Codes Report
To view a status codes report:
- Go to your Control Panel > Metrics > Status Codes menu.
- You can filter the statistics by:
Frequency - select the frequency type (one minute, one hour, or one day)
CDN resource - choose the CDN resource for which you want to view the statistics
Time period - select the period start and end dates - Click the Apply button. You will get the statistics chart and two tables:
- The chart shows the number of requests with different error codes for the selected period.
- You can view the list of error codes together with their amount of requests in the Status Codes table.
- The HTTP Error Report (4XX & 5XX) table shows the list of CDN resources together with their amount of error requests.
OnApp applies the global setting for HTTP error code caching as follows:
- proxy_cache_valid 404 1m
- proxy_cache_valid 200 301 1d
To sort information by column in ascending or descending order, hover over the particular column header and click a triangle icon.
To export the statistics in csv format, click the Export to CSV button.
CDN hostname may return the following status codes:
- 2XX (200, 201, 202, etc.) means that the HTTP request is successful.
- 3XX (301, 302, etc.) means that there is a redirection layer being set up on the origin or webserver. To avoid any redirection conflict when using CDN, you can use an IP origin instead of a hostname origin. For example, instead of using www.mywebsite.com as an origin, use the IP address of www.mywebsite.com as a CDN resource origin.
4XX (401, 402, etc.) means that the CDN PoP (edge servers) has an issue.
5XX (501, 502, etc.) means that CDN edge servers have an issue with fetching content from the CDN resource origin. When the CDN resource origin is offline, cached files are still available. If the file requested from a visitor is not currently cached on the edge server when the origin is offline, end users get a 500 error.