do not wrap into callback if callback name is null;
produce X-Status-Code header; output empty string when making HEAD request instead of null to make the logic go through Format::encode;