There is one simple (but slightly hacked) answer, and a guide for making the first option obsolete (EDIT: and the third, best option, actually).
- , Handler
MonadError ServantErr
ServantErr
- " ", HTTP- , . , - throwError $ err301 { errHeaders = [("Location", "https://haskell.org/")] }
. , "" . .
, , / . , , , .
, , . , , , ! . , . , . , , . , PostRedirect
, ( , , ), , .