summaryrefslogtreecommitdiffstats
path: root/src/client.ts
Commit message (Collapse)AuthorAgeFilesLines
* Carry the municipality of a CEP that does not existHEADv0.2.0mainMurilo Ijanc2026-07-271-11/+44
| | | | | | | | | | | | | | 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 answers the 404 with the municipality that band belongs to, which is enough to tell the user "Areal/RJ, but not that number" instead of a bare failure. It stays an error. Faixa hangs off CEPNotFound rather than becoming a result, cep_ini/cep_fim are documented as the CEPs that exist there and not as a range to iterate, and an absent or unreadable block yields undefined so that context can never cost the caller the clean not-found it was already getting.
* Initial importv0.1.0Murilo Ijanc2026-07-261-0/+433