midas-framework/midas

Enumerate the response types

Opened this issue · 0 comments

Somewhere we need to have the information on messages for response types, however it's extensible

  1. Define all the types
response(OK)
response(Custom(422, "Something"))

or have functions that return status + reason phrase

response(ok())
response(tuple(422, "Something)