<feed xmlns='http://www.w3.org/2005/Atom'>
<title>cobol/src/cepis-lookup-many.cob, branch v0.2.0</title>
<subtitle>COBOL client for the public CEP API - GnuCOBOL
</subtitle>
<id>http://git.cep.is/cobol/atom?h=v0.2.0</id>
<link rel='self' href='http://git.cep.is/cobol/atom?h=v0.2.0'/>
<link rel='alternate' type='text/html' href='http://git.cep.is/cobol/'/>
<updated>2026-07-27T23:39:38Z</updated>
<entry>
<title>Expose the faixa a missing CEP would have belonged to</title>
<updated>2026-07-27T23:39:38Z</updated>
<author>
<name>Murilo Ijanc</name>
<email>murilo@ijanc.org</email>
</author>
<published>2026-07-27T23:39:38Z</published>
<link rel='alternate' type='text/html' href='http://git.cep.is/cobol/commit/?id=4014037e505876ed8c4df229ace3a65092e64ca8'/>
<id>urn:sha1:4014037e505876ed8c4df229ace3a65092e64ca8</id>
<content type='text'>
A CEP that fails is rarely a random number: it is 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 that municipality to
the 404, and a caller left with nothing but "does not exist" cannot tell
a typo in a real city from a CEP that was never plausible.

It goes in CEPIS-STATUS, not CEPIS-ADDRESS. The call has still failed
and the address is still empty; putting a localidade where the address
lives would let a caller that forgets to test the status read Areal as
the answer to a CEP that does not exist.

Parsing is best effort throughout. faixa is omitted rather than sent as
null for a band no municipality owns, so its absence is the normal case
and there is a flag instead of a marker value; a block that is missing,
is not an object, or is short of localidade, uf, cep_ini, cep_fim and
ceps is dropped and the not-found comes back clean. Failing a 404 the
caller already understands over a decoration on it would be a poor
trade.

cep_ini and cep_fim are the CEPs that exist, not the bounds the Correios
publish, and the span between them is mostly empty -- hence ceps beside
them, so the pair is not read as a list.
</content>
</entry>
<entry>
<title>Initial import</title>
<updated>2026-07-26T15:49:48Z</updated>
<author>
<name>Murilo Ijanc</name>
<email>murilo@ijanc.org</email>
</author>
<published>2026-07-26T15:49:48Z</published>
<link rel='alternate' type='text/html' href='http://git.cep.is/cobol/commit/?id=f979d07d23098b96e758b3feb555cd06d85d9b2d'/>
<id>urn:sha1:f979d07d23098b96e758b3feb555cd06d85d9b2d</id>
<content type='text'>
</content>
</entry>
</feed>
