Fix HTTP response code of 0 (fix #212)