Is there a status code for ssl is not supported?
I would like to send an error code if someone tries to call a redirected domain with https:// because right now nginx falls back to using the default_server which ends in an certificate error
You can pick what status you want form the list that you can find here.
In this page you can also find the list of custom statuses supported by ngix. I guess your case is falling under this:
495 SSL Certificate Error: An expansion of the 400 Bad Request response code, used when the client has provided an invalid client certificate.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With