public static ErrorResponse badRequest(String message) {
        return new ErrorResponse(BAD_REQUEST, errorCodes.BAD_REQUEST.name(), message);
    }
A HTTP JSON response containing an error code and a message

@author bratseth
container-core/src/main/java/com/yahoo/restapi/ErrorResponse.java