package com.baeldung.sparkjava; public enum StatusResponse { SUCCESS("Success"), ERROR("Error"); final private String status; StatusResponse(String status) { this.status = status; } public String getStatus() { return status; } }