Http api shards

Minor nit. Mostly a personal preference, but I usually do `else if` for all the checks so the test assertions can all get grouped together and not take up so much vertical space. Not a big deal for two checks but it can get pretty long if you have a lot of assertions.