@Produces(MediaType.APPLICATION_JSON)
@ApiOperation(value = "Override load balancer status of this graylog2-server node. Next lifecycle " +
"change will override it again to its default. Set to ALIVE or DEAD.")
@Path("/override/{status}")
public Response override(@ApiParam(name = "status") @PathParam("status") String status) {
final LoadBalancerStatus lbStatus;
try {
lbStatus = LoadBalancerStatus.valueOf(status.toUpperCase());
} catch(IllegalArgumentException e) {
throw new WebApplicationException(e, Response.Status.BAD_REQUEST);
}