Skip to content

Instantly share code, notes, and snippets.

@dph01
Created April 21, 2012 10:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dph01/2436508 to your computer and use it in GitHub Desktop.
Save dph01/2436508 to your computer and use it in GitHub Desktop.
def createNotFound(f: Failure): LiftResponse =
NamedPF((this, Full(f)), LiftRules.uriNotFound.toList) match {
case DefaultNotFound => Req.defaultCreateNotFound(this)
case NotFoundAsTemplate(path) => notFoundViaTemplate(path)
case NotFoundAsResponse(resp) => resp
case NotFoundAsNode(node) => LiftRules.convertResponse((node, 404),
S.getHeaders(LiftRules.defaultHeaders((node, this))),
S.responseCookies,
this)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment