Sends 400/Bad Request status to the client. @param exception The exception that was thrown
(final BadRequestException exception)
| 383 | * @param exception The exception that was thrown |
| 384 | */ |
| 385 | public void badRequest(final BadRequestException exception) { |
| 386 | logWarn("Bad Request on " + request().getUri() + ": " + exception.getMessage()); |
| 387 | sendBuffer(HttpResponseStatus.BAD_REQUEST, |
| 388 | ChannelBuffers.wrappedBuffer( |
| 389 | exception.toString().getBytes(Const.UTF8_CHARSET)), |
| 390 | "text/plain"); |
| 391 | } |
| 392 | |
| 393 | /** |
| 394 | * Sends <code>404/Not Found</code> to the client. |
no test coverage detected