Is it possible to use `abort` directive when status code from reverse_proxy is 444?

1. The problem I’m having:

I know there is abort directive. But I don’t know if it’s possible to use it when the status code from reverse_proxy is a certain value, such as 444 (the magic one of nginx). Thanks in advance!

2. Error messages and/or full log output:


3. Caddy version:


4. How I installed and ran Caddy:


5. Links to relevant resources:

Of course it’s possible. You need to look into the concept of Intercepting responses. Here’s a quick snippet of how it could work:

reverse_proxy localhost:8080 {
	@444 status 444
	handle_response @444 {

More details here:

1 Like

@Mohammed90 It works! You are so, so, so helpful!!!


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.