| Constructor and Description |
|---|
DefaultNotFoundHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
run(Request request,
Response response)
If
run throws MissingParam exception when
calling request.param, response.respondMissingParam
will automatically be called, which by default responds "400 Bad Request". |
public void run(Request request, Response response) throws java.lang.Exception
Actionrun throws MissingParam exception when
calling request.param, response.respondMissingParam
will automatically be called, which by default responds "400 Bad Request".
If run throws other exception, response.respondServerError
will automatically be called, which by default responds "500 Internal Server Error".