Node js – Http error code on client certificate expired

I’m developing a node js https server with client certificate authentication. Everything works fine, but if I use an expired client certificate, the server closes the socket abruptly. Is the a way to make the server return an http code. I know that ISS returns 403.17 in this situation.