#2 Fix HTTP module error while trying to write response headers