Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTTP status code for SSL not supported

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

like image 536
kannix Avatar asked Feb 22 '26 11:02

kannix


1 Answers

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.

like image 197
rakwaht Avatar answered Feb 25 '26 04:02

rakwaht



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!