public HttpResponseBuilder badGateway() {
        return status(HttpStatus.BAD_GATEWAY);
    }
Sets 502 Bad Gateway to the status of this response.
core/src/main/java/com/linecorp/armeria/common/HttpResponseBuilder.java