Do you have a client SSL profile added to the virtual server? If so, you can use HTTP::respond instead of SSL::respond. The syntax should be about the same. Also, make sure to use \r\n as this is the delineator for HTTP headers.
Sorry, I’ve been missing the point in your posts on this. You need to send an HTTP 1.1 response, but HTTP::respond doesn’t currently support sending an HTTP 1.1 response. There is a request for enhancement ID, 337768, which tracks the request to send an HTTP response with a version that matches the original request version. There’s a suggestion to add a flag to override this behavior if you want to hard code the response version.
I’m not sure why SSL::respond isn’t working in LB_FAILED. I suggest opening a case with F5 Support on this. I found one case related to this issue (which might be from your reseller?) but the specific issue of SSL::respond not working in LB_FAILED wasn’t investigated fully.