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 .
These examples are extracted from open source projects.
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 Project: k3pler File: LProxy.java License: 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 Project: pampas File: PampasException.java License: Apache License 2.0 | 4 votes |
public PampasException(Throwable ex) { this(HttpResponseStatus.BAD_GATEWAY, HttpHeaderValues.APPLICATION_JSON.toString(), ex.getMessage(), ex); }
Example 3
Source Project: pampas File: PampasException.java License: Apache License 2.0 | 4 votes |
public PampasException(String message) { this(HttpResponseStatus.BAD_GATEWAY, message); }
Example 4
Source Project: pampas File: PampasException.java License: Apache License 2.0 | 4 votes |
public PampasException(String message, Throwable ex) { this(HttpResponseStatus.BAD_GATEWAY, HttpHeaderValues.APPLICATION_JSON.toString(), message, ex); }