package me.vickychijwani.spectre.model;

public class ApiError {

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

}

@@ -34,16 +34,68 @@
 model;%0A%0A
+import com.google.gson.annotations.SerializedName;%0A%0A
 public c
@@ -166,16 +166,205 @@
 r humans
+%0A%0A    // unfortunately there is a bug in the field name on the API side, it is %22errorType%22 rather than%0A    // %22error_type%22, hence the custom @SerializedName%0A    @SerializedName(%22errorType%22)
 %0A    pub

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