import {BaseError} from "./baseError";
import {FetchAdapterResponse, RequestMeta} from "../fetchAdapter";

export class HttpStatusError extends BaseError {
    constructor(
        {code, response, request, requestMeta}: { code: number, response: FetchAdapterResponse, request: Request, requestMeta?: RequestMeta }
    ) {
        super({code, response, request, requestMeta, message: "HTTP_STATUS_ERROR"});
    }
}
