Return 404 insead of failing for invalid team id.
whitespace and lint fixes