Centralizing HTTP Error Handling in Ktor with StatusPages
Replace scattered route-level try-catch blocks with Ktor's StatusPages plugin to keep HTTP error contracts consistent and reduce boilerplate.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Replace scattered route-level try-catch blocks with Ktor's StatusPages plugin to keep HTTP error contracts consistent and reduce boilerplate.
Learn how Kotlin’s structured concurrency eliminates common async pitfalls by tying coroutine lifecycles to scopes, with a concrete example of parallel network calls and guidance on dispatcher selection.
Ktor picks a response format from the Accept header — and from the order you registered converters. Here's how to make that fallback deliberate.
Learn how to implement state hoisting in Jetpack Compose to move from rigid, stateful components to flexible, stateless ones that are easier to test and control.
Nested callbacks make async Kotlin code hard to read and easy to leak. Suspend functions and structured concurrency let you write sequential-looking code that cancels safely when its scope dies.
A decision guide for Kotlin structured concurrency: when to use coroutineScope for fail-fast aggregation, supervisorScope for independent tasks, and why GlobalScope leaks work.
Learn how Kotlin delegated properties offload getter/setter logic to a delegate object, with a worked lazy/observable example, limits, and common pitfalls.
Learn how to use Ktor's Content Negotiation plugin to decouple your API logic from data formats like JSON, reducing boilerplate and improving performance.
Extract Method usually works, but the signature it proposes can surprise you. Here is how to read the preview, fix the common causes and verify the result.