How to send a 404 (or another specific) HTTP error in Lift?
As my web application is currently a REST-only system (with no pages meant for us开发者_如何学Goer view) I'd like to send a 404 HTTP error when index page is requested. How to do this in Lift?
Does this work for you?
serve {
case XmlPut("order" :: orderId :: Nil, (_, _)) =>
Full(NotFoundResponse())
}
... or just Empty box. With an empty box later serve blocks may override.
精彩评论