nginx internal: the client certificate failed verification; the client receives 400.
With mutual TLS (ssl_verify_client on), nginx uses 495 when the client presented a certificate that fails verification (untrusted issuer, expired, revoked). The client receives 400 with "The SSL certificate error"; the separate code lets you define error_page 495.
ssl_client_certificate / ssl_trusted_certificate.ssl_crl).ssl_verify_depth.$ssl_client_verify in logs: it contains the reason, e.g. "FAILED:certificate has expired".HTTP/1.1 400 Bad Request
Server: nginx
Content-Type: text/html
<center>The SSL certificate error</center>