add err418

This commit is contained in:
Sönke Hahn 2016-10-23 14:37:05 -04:00
parent 79f53cef3e
commit 3f6ecbb77b

View file

@ -362,6 +362,20 @@ err417 = ServantErr { errHTTPCode = 417
, errHeaders = []
}
-- | 'err418' Expectation Failed
--
-- Example:
--
-- > failingHandler :: Handler ()
-- > failingHandler = throwError $ err418 { errBody = "Apologies, this is not a webserver but a teapot." }
--
err418 :: ServantErr
err418 = ServantErr { errHTTPCode = 418
, errReasonPhrase = "I'm a teapot"
, errBody = ""
, errHeaders = []
}
-- | 'err500' Internal Server Error
--
-- Example: