cf.response.error_type
cf.response.error_type String A string with the type of error in the response being returned.
The default value is an empty string ("").
The available values are the following:
"managed_challenge""iuam""legacy_challenge""ip_ban""waf""5xx""1xxx""always_online""country_challenge""ratelimit"
You can use this field to customize the response for a specific type of error (for example, all 1XXX errors or all WAF block actions).
Note: This field is only available in Response Header Transform Rules and Custom Errors.
 Categories: 
   - Response
 
Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Products
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- © 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark