Java Code Examples for io.netty.handler.codec.http.HttpResponseStatus#BAD_GATEWAY
The following examples show how to use
io.netty.handler.codec.http.HttpResponseStatus#BAD_GATEWAY .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LProxy.java From k3pler with GNU General Public License v3.0 | 5 votes |
private HttpResponseStatus getResponseStatus(int ID){ switch (ID){ case 0: return HttpResponseStatus.BAD_GATEWAY; case 1: return HttpResponseStatus.BAD_REQUEST; case 2: return HttpResponseStatus.FORBIDDEN; case 3: return HttpResponseStatus.NOT_FOUND; default: return HttpResponseStatus.BAD_GATEWAY; } }
Example 2
Source File: PampasException.java From pampas with Apache License 2.0 | 4 votes |
public PampasException(Throwable ex) { this(HttpResponseStatus.BAD_GATEWAY, HttpHeaderValues.APPLICATION_JSON.toString(), ex.getMessage(), ex); }
Example 3
Source File: PampasException.java From pampas with Apache License 2.0 | 4 votes |
public PampasException(String message) { this(HttpResponseStatus.BAD_GATEWAY, message); }
Example 4
Source File: PampasException.java From pampas with Apache License 2.0 | 4 votes |
public PampasException(String message, Throwable ex) { this(HttpResponseStatus.BAD_GATEWAY, HttpHeaderValues.APPLICATION_JSON.toString(), message, ex); }