summaryrefslogtreecommitdiffstats
path: root/LICENSE
diff options
context:
space:
mode:
authorMurilo Ijanc <[email protected]>2026-07-27 20:27:46 -0300
committerMurilo Ijanc <[email protected]>2026-07-27 20:27:46 -0300
commit2795e86ccf5a15a7601611aaa12be1e0758c963a (patch)
tree6a348960633e3e62eaeb102e74e8d1ceab68d65a /LICENSE
parent329f679cd359bcab92adf3366cf17711836d0c79 (diff)
downloadjava-aabedb3032fa1ea42e364c4d18a4c142da08ddeb.tar.gz
Carry the band's municipality on a not-found CEPHEADv0.2.0main
A CEP that fails is almost never random: it is someone who knows the city and guessed the number, usually the -000 that 957 municipalities never received. The API now answers those 404s with a faixa block naming the municipality that owns the band, so CepNotFoundException exposes it and says it in its message. It stays an error. The band is context, not an address, and its cep_ini and cep_fim are the smallest and largest CEP that actually exist there — not the bounds the Correios publish, and not a dense interval — so the type documents both traps rather than inviting callers to walk the range. Reading it is best effort: a missing, malformed or oddly shaped faixa is dropped, because turning a definitive answer about the request into a parse failure would hide the answer.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions