As my web application is currently a REST-only system (with no pages meant for user 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With