Added sendError(int) to HttpFacade.Response.

This commit is contained in:
Thomas Raehalme committed 2015-11-06 10:47:08 +02:00
1 parent 15828e899b
commit 7b7fbd3257
7 files changed
+51

No files matched your search

@@ -95,6 +95,15 @@ class WrappedHttpServletResponse implements Response {
}
}
@Override
public void sendError(int code) {
try {
response.sendError(code);
} catch (IOException e) {
throw new RuntimeException("Unable to set HTTP status", e);
}
}
@Override
public void sendError(int code, String message) {
try {