cancel
Showing results for 
Search instead for 
Did you mean: 

NGINX http code 499 equivalent in F5

Ravindra
Nimbostratus
Nimbostratus

Hi Team, I am working on a migration from NGINX to F5 LTM. As per customer, they get http code 499 on nginx whenever a client closes the connection before backend server process it or send response. Do we have anything like that in F5 as well. Does F5 also generate some error code for such connections.

 

1 REPLY 1

Lee_Sutcliffe
Nacreous
Nacreous

F5 is a full TCP proxy, so by default will only forward status codes as sent by the backend servers/pool members. You can of course modify these or create custom status codes with an iRule dependent on your requirements

 

For example:

 

when HTTP_REQUEST { if {YOUR-CLIENT-CLOSE-CONDITION} { HTTP::respond "499" -version 1.1 content "Some Content" } }

In your case you could read the client close on HTTP_REQUEST and respond with the desired status code. As this is on HTTP_REQUEST, it will respond with the defined status code and bypass load balancing to the backend server.

 

https://devcentral.f5.com/wiki/iRules.HTTP__respond.ashx