package io.a2a_preview.model;

import lombok.Getter;

/**
 * @author by HaiTao.Wang on 2025/8/21.
 */
@Getter
public enum ErrorCode {

    PARSE_ERROR(-32700),
    INVALID_REQUEST(-32600),
    METHOD_NOT_FOUND(-32601),
    INVALID_PARAMS(-32602),
    INTERNAL_ERROR(-32603),
    TASK_NOT_FOUND(-32000),
    TASK_NOT_CANCELABLE(-32001),
    PUSH_NOTIFICATION_NOT_SUPPORTED(-32002),
    UNSUPPORTED_OPERATION(-32003),
    INVALID_AGENT_RESPONSE(-32004),
    CONTENT_TYPE_NOT_SUPPORTED(-32005);

    private final int value;

    ErrorCode(int value) {
        this.value = value;
    }

}
