Swap http server ErrorFunc and HeaderFunc