Effect CommunityEC
Effect Community3y ago
6 replies
attila

Migrating HTTP Clients: Union Schema or Separate Schemas for Status Codes?

I'll be migrating my http clients to this platform library soon. The way I used to do things was to define a codec/schema representing a discriminated union where the discriminant is the status code. Is this use possible with this new library? Or do I need to define a separate schema for each status code?
Was this page helpful?