package com.pixelized.biblib.network.data.response

import com.google.gson.annotations.SerializedName

open class ErrorResponse(
    @SerializedName("error")
    val error: Error? = null,
    @SerializedName("message")
    val message: String? = null,
) {
    val isError: Boolean get() = error != null

    class Error(
        @SerializedName("expose")
        val expose: Boolean? = null,
        @SerializedName("statusCode")
        val statusCode: Int? = null,
        @SerializedName("status")
        val status: Int? = null,
        @SerializedName("body")
        val body: String? = null,
        @SerializedName("type")
        val type: String? = null,
    )
}
