I've turned back-end responses into `Either` monad...
# arrow
r
I've turned back-end responses into
Either
monad from
Retrofit
interfaces. What do you think I've recently got from my partner? Brilliant idea: to skip handling each
Left
and just throw Exceptions. Remember the song?: lonelyyyy, I'm sooo loonelyyyy 😭
😅 9
500 3
s
I'm curious what's on the
Left
side? Http exceptions only? or something more complex?
r
@stojan there are internal server errors: validation, etc.
👍 1
o
Just as a note: validation errors shouldn't be internal server errors but 4xx's (client errors)