cmd/ipfs2: Made '/ipfs' handler return more accurate HTTP response codes, resolves #287