@@ -0,0 +1,2950 @@
+/*%0A * Copyright 2015 Henrik Olsson%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *    http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage com.meisolsson.githubsdk.model;%0A%0Aimport android.os.Parcelable;%0Aimport android.support.annotation.NonNull;%0Aimport android.support.annotation.Nullable;%0A%0Aimport com.meisolsson.githubsdk.core.FormattedTime;%0Aimport com.google.auto.value.AutoValue;%0Aimport com.squareup.moshi.Json;%0Aimport com.squareup.moshi.JsonAdapter;%0Aimport com.squareup.moshi.Moshi;%0A%0Aimport java.util.Date;%0Aimport java.util.List;%0A%0A@AutoValue%0Apublic abstract class ClientErrorResponse implements Parcelable %7B%0A    @AutoValue%0A    public abstract static class BlockReason implements Parcelable %7B%0A        @Nullable%0A        public abstract String reason();%0A%0A        @Json(name = %22created_at%22)%0A        @FormattedTime%0A        @Nullable%0A        public abstract Date createdAt();%0A%0A        @Json(name = %22html_url%22)%0A        @Nullable%0A        public abstract String htmlUrl();%0A%0A        public static JsonAdapter%3CBlockReason%3E jsonAdapter(Moshi moshi) %7B%0A            return new AutoValue_ClientErrorResponse_BlockReason.MoshiJsonAdapter(moshi);%0A        %7D%0A    %7D%0A%0A    @AutoValue%0A    public abstract static class FieldError implements Parcelable %7B%0A        public enum Reason %7B%0A            @Json(name = %22missing%22) MissingResource,%0A            @Json(name = %22missing_field%22) MissingField,%0A            @Json(name = %22invalid%22) Invalid,%0A            @Json(name = %22already_exists%22) AlreadyExists,%0A            @Json(name = %22too_large%22) TooLarge,%0A            @Json(name = %22custom%22) Custom%0A        %7D%0A%0A        @NonNull%0A        public abstract String resource();%0A%0A        @NonNull%0A        public abstract String field();%0A%0A        @Json(name = %22code%22)%0A        @NonNull%0A        public abstract Reason reason();%0A%0A        @Nullable%0A        public abstract String message();%0A%0A        public static JsonAdapter%3CFieldError%3E jsonAdapter(Moshi moshi) %7B%0A            return new AutoValue_ClientErrorResponse_FieldError.MoshiJsonAdapter(moshi);%0A        %7D%0A    %7D%0A%0A    @Nullable%0A    public abstract String message();%0A%0A    @Json(name = %22block%22)%0A    @Nullable%0A    public abstract BlockReason blockReason();%0A%0A    @Nullable%0A    public abstract List%3CFieldError%3E errors();%0A%0A    @Json(name = %22documentation_url%22)%0A    @Nullable%0A    public abstract String documentationUrl();%0A%0A    public static JsonAdapter%3CClientErrorResponse%3E jsonAdapter(Moshi moshi) %7B%0A        return new AutoValue_ClientErrorResponse.MoshiJsonAdapter(moshi);%0A    %7D%0A%7D%0A

Add model for GitHub's error response.