<feed xmlns='http://www.w3.org/2005/Atom'>
<title>d/source, branch main</title>
<subtitle>D client for the public CEP API
</subtitle>
<id>http://git.cep.is/d/atom?h=main</id>
<link rel='self' href='http://git.cep.is/d/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.cep.is/d/'/>
<updated>2026-07-27T23:37:09Z</updated>
<entry>
<title>Carry the municipality a missing CEP would belong to</title>
<updated>2026-07-27T23:37:09Z</updated>
<author>
<name>Murilo Ijanc</name>
<email>murilo@ijanc.org</email>
</author>
<published>2026-07-27T23:37:09Z</published>
<link rel='alternate' type='text/html' href='http://git.cep.is/d/commit/?id=a891657aa43d2aba06a6347dd2f94edd19afd6ba'/>
<id>urn:sha1:a891657aa43d2aba06a6347dd2f94edd19afd6ba</id>
<content type='text'>
A 404 is rarely a random number: it is usually someone who knows the city
and guessed the digits, and the classic guess is the -000 that 957
municipalities never received. The API now attaches a faixa to the
not-found body naming the municipality that owns the range, so the caller
can say "no such CEP, but that range is Areal/RJ" instead of only "no".

It stays an error. Faixa hangs off CepNotFoundException, never off
Address, and parsing is deliberately lenient: an absent, malformed or
unnamed block yields a null Nullable, so reading the extra context can
never cost the caller the answer it already had.

cep_ini and cep_fim are the smallest and largest CEP that actually exist
there, not the bounds the Correios publish, and the range between them is
sparse — hence ceps, so nobody mistakes the pair for a list.
</content>
</entry>
<entry>
<title>Initial import</title>
<updated>2026-07-26T15:47:38Z</updated>
<author>
<name>Murilo Ijanc</name>
<email>murilo@ijanc.org</email>
</author>
<published>2026-07-26T15:47:38Z</published>
<link rel='alternate' type='text/html' href='http://git.cep.is/d/commit/?id=794f28199a4dde9d18ec711864336c96c58bb422'/>
<id>urn:sha1:794f28199a4dde9d18ec711864336c96c58bb422</id>
<content type='text'>
</content>
</entry>
</feed>
