<feed xmlns='http://www.w3.org/2005/Atom'>
<title>r/tests/helper/utils.R, branch v0.2.0</title>
<subtitle>R client for the public CEP API
</subtitle>
<id>http://git.cep.is/r/atom?h=v0.2.0</id>
<link rel='self' href='http://git.cep.is/r/atom?h=v0.2.0'/>
<link rel='alternate' type='text/html' href='http://git.cep.is/r/'/>
<updated>2026-07-27T23:38:27Z</updated>
<entry>
<title>Report the municipality a missing CEP would have belonged to</title>
<updated>2026-07-27T23:38:27Z</updated>
<author>
<name>Murilo Ijanc</name>
<email>murilo@ijanc.org</email>
</author>
<published>2026-07-27T23:38:27Z</published>
<link rel='alternate' type='text/html' href='http://git.cep.is/r/commit/?id=399eac351b1bc29d5047dbac96486c281be1b05c'/>
<id>urn:sha1:399eac351b1bc29d5047dbac96486c281be1b05c</id>
<content type='text'>
A CEP that fails a lookup is rarely a random number: it is usually someone
who knows the city and guessed, and the classic guess is the -000 that 957
municipalities never received. The API now answers those 404s with a faixa
naming the municipality that owns the band the number fell into, which is
the difference between telling a user "invalid CEP" and "no such CEP in
Areal/RJ".

It is context for an error and never an address, so it rides on the
cepis_not_found condition instead of turning the failure into a success,
and cep_ini/cep_fim are the endpoints that exist rather than the range the
Correios publish - the interval between them is sparse, which is what ceps
counts. Parsing is deliberately unable to signal: a faixa that is null, an
array, a string or half a body leaves a clean not-found behind, because the
caller asked for the CEP, not for the decoration on its absence.
</content>
</entry>
<entry>
<title>Initial import</title>
<updated>2026-07-26T15:42:37Z</updated>
<author>
<name>Murilo Ijanc</name>
<email>murilo@ijanc.org</email>
</author>
<published>2026-07-26T15:42:37Z</published>
<link rel='alternate' type='text/html' href='http://git.cep.is/r/commit/?id=11d49bc25eb1643f1b742f9527212d8781f2e0de'/>
<id>urn:sha1:11d49bc25eb1643f1b742f9527212d8781f2e0de</id>
<content type='text'>
</content>
</entry>
</feed>
