FroMage / redpipe

Redpipe Web Framework
Apache License 2.0
70 stars 10 forks source link

Handle Completable & Maybe.. #41

Closed aesteve closed 6 years ago

aesteve commented 6 years ago

Hello,

At the moment, the classes :

Are not handled.

I think they are mappable :

FroMage commented 6 years ago

I agree with Completable because 204 is indeed used to indicate success with no content.

I think I agree with Maybe and 404 if null too. It doesn't feel so obvious to me, because I'm not sure if it's always obvious that the 404 will be a result of a missing entity as pointed to by the requester, or an internal step that went missing that may not directly be related to the entity. But I think I agree because on the surface, it feels reasonable to justify it.