kishore
09/03/2026, 6:19 PMSucceeded, Restricted, Invalid, Rejected, ...)
Think HTTP status codes, but generalized and usable at any layer, not just HTTP.
Notes
1. Extensible: Status and Group are fixed, Code is open and extensible for your own domain, with sensible defaults so nothing's required up front.
2. Usability : The same taxonomy works as a plain API status, in validation, exceptions, or a Result<T, E>
3. Protocols : There are converters for HTTP and gRPC too, validated against every gRPC status code and the common HTTP ones.
kotlin
implementation("dev.kiit:kiit-codes:1.0.3")
1. GitHub: github.com/kiitdev/kiit-codes
2. Docs: kiit.dev/docs/kiit-codes
Would genuinely love feedback, whether the classifications make sense, or anything that seems off or missing.
I can answer questions here too.
Thx!Bernd Prünster
09/04/2026, 7:04 PMkishore
09/05/2026, 1:28 AMRestricted = security/permission related
2. Invalid = request/client related
3. Rejected = server/business/domain rules
4. Unserved = operational issues.
Security/auth is a good callout. I'm familiar with OAuth, but if a different protocol comes to your mind as a better stress test, I'd be curious. These could map to the Tier 2 groups above with custom codes plus origin = "OAuth."
I'm putting together a blog post soon and thought an example from someone in security would be great, so if you're ever up for it, happy to chat and credit you however you'd like. Totally fine if not, just wanted to put it out there.
Thanks again.
-KBernd Prünster
09/05/2026, 5:58 AMkishore
09/06/2026, 8:44 PM"extension pack" on top of the foundation. Might have a tentative design and example ready in a week or so, on the repo or docs page, happy to ping you if you're interested in taking a look.Bernd Prünster
09/07/2026, 2:55 AM