How to handle the following case with katharsis?
<p>I have a model and repository. Model has getter and setter values which has to be added in the response. My model is like follows</p>

<pre><code>import com.fasterxml.jackson.annotation.JsonIgnore;
import io.katharsis.resource.annotations.JsonApiId;
import io.katharsis.resource.annotations.JsonApiResource;

@JsonApiResource(type="employee") //no i18n
public class Employee { 

    @JsonApiId
    private String name;
    private int emp_id;
    private String dob;

    private String profile_url;

    private String status_message;

    public String getName() {
          return this.name;
    }
    public void setName(String name) {
          this.name = name;
    }

    public int getEmp_id() {
          return this.emp_id;
    }
    public void setEmp_id(int empid) {
          this.emp_id = empid;
    }

    public String getDob() {
          return this.dob;
    }
    public void setDob(String dob) {
          this.dob = dob;
    }

    public String getProfile_url() {
          return this.profile_url;
    }
    public void setProfile_url(String url) {
          this.profile_url = url;
    }

    public String getStatus_message() {
          return this.status_message;
    }
    public void setStatus_message(String message) {
          this.status_message = message;
    } 
 }         
</code></pre>

<p>Here the variable <code>status_message</code> represents my api status. The api response should be like</p>

<ol>
<li>When the database has the employee with inputted id</li>
</ol>

<p>{name : "rajasuba", emp_id : "123", dob : "March301993", profile_url : "https:", status_message : "success"}</p>

<ol start="2">
<li>When the employee left the organization the response should be like</li>
</ol>

<p>{name : "rajasuba", emp_id : "567", status_messsage : "fired"}</p>

<ol start="3">
<li>When there is no such employee then my response should be like </li>
</ol>

<p>{status_message : "Invalid employeed id"}</p>

<p>But for all the above cases i am getting all the attribute values. How can i ignore the attribute value (like @JsonIgnore) selectively for a particular scenario?</p>