Created
April 21, 2012 10:41
-
-
Save dph01/2436508 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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