Forum Discussion
4 Replies
Sort By
- VernonWellsEmployee
Not tested, but this should do the trick:
when HTTP_REQUEST { set path [HTTP::path] } when HTTP_RESPONSE { if { [HTTP::status] starts_with "5" && $path eq "/internal_api" } { HTTP::respond 500 "{\"error_type\":\"internal_server_error\"}" Content-Type "application/json" } }
- Joern_OltmannNimbostratusHi Vernon, thanks a lot, I will test it on ou lab and come back if it's work!
- Vernon_97235Historic F5 Account
Not tested, but this should do the trick:
when HTTP_REQUEST { set path [HTTP::path] } when HTTP_RESPONSE { if { [HTTP::status] starts_with "5" && $path eq "/internal_api" } { HTTP::respond 500 "{\"error_type\":\"internal_server_error\"}" Content-Type "application/json" } }
- Joern_OltmannNimbostratusHi Vernon, thanks a lot, I will test it on ou lab and come back if it's work!