Added sendError(int) to HttpFacade.Response.
This commit is contained in:
1 parent
15828e899b
commit
7b7fbd3257
7 files changed
+51
No files matched your search
+9
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user