This is a really minor one but `if resp.code == "201"` :P Spell it out on why: "201 equals response code" vs "response code equals 201"