The main difference is that NGINX responds with:

print "HTTP1/1 200 OK\r\n" ;

Whereas Apache requires:

print "Status: 200 OK\r\n" ;