package me.vickychijwani.spectre.model;

public class ApiError {

    public String message;          // meant for humans
    public String errorType;        // meant for machines: "UnauthorizedError", etc.

}

package me.vickychijwani.spectre.model;

import com.google.gson.annotations.SerializedName;

public class ApiError {

    public String message;          // meant for humans

    // unfortunately there is a bug in the field name on the API side, it is "errorType" rather than
    // "error_type", hence the custom @SerializedName
    @SerializedName("errorType")
    public String errorType;        // meant for machines: "UnauthorizedError", etc.

}

Fix errorType field name in ApiError model (belongs with commit be0b8dc).