© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Seeking Improved Method for Data Type Narrowing - Effect Community
EC
Effect Community
•
2y ago
johtso
Seeking Improved Method for Data Type Narrowing
Is there a better way to do this
? I want to take both the status code of the response
, and the json body into account when generating my errors
.
Ideally I could use
Http.client.filterStatusOk
Http.client.filterStatusOk
, but catch the error and have access to the response when producing my custom error
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Seeking Improved Method to Fetch Packages in Typescript
EC
Effect Community / 🚀-beginners
13mo ago
Improving type narrowing
EC
Effect Community / 🚀-beginners
7mo ago
Interaction between generators and type narrowing
EC
Effect Community / 🚀-beginners
3y ago
Alternative Method to Extract Case Type from `Data.TaggedEnum`
EC
Effect Community / 🚀-beginners
2y ago