Forum Discussion

Hamish's avatar
Hamish
Icon for Cirrocumulus rankCirrocumulus
Nov 05, 2014

HTTP 501 return from Local Traffic Policy

Hi

 

Has anyone managed to get a local traffic policy to return a particular HTTP status? I went looking, and I can alter headers, reset connections, choose pools etc... but there's nothing obvious that lets you control the HTTP response status (Except a 302 redirect)

 

or am I missing something?

 

TIA Hamish

 

2 Replies

  • I think this may work but I'm unable to test, bit of a hack you can only do in tmsh;

    rules {
        test_rule_1 {
            actions {
                0 {
                    http-reply
                    redirect
                    location http://www.test.com/
                    status 501
                }
            }