package com.kamco.cd.kamcoback.common.enums.error;

import com.kamco.cd.kamcoback.common.utils.ErrorCode;
import lombok.Getter;
import org.springframework.http.HttpStatus;

@Getter
public enum AuthErrorCode implements ErrorCode {
  LOGIN_ID_NOT_FOUND("LOGIN_ID_NOT_FOUND", HttpStatus.UNAUTHORIZED),

  LOGIN_PASSWORD_MISMATCH("LOGIN_PASSWORD_MISMATCH", HttpStatus.UNAUTHORIZED),

  LOGIN_PASSWORD_EXCEEDED("LOGIN_PASSWORD_EXCEEDED", HttpStatus.UNAUTHORIZED),

  INACTIVE_ID("INACTIVE_ID", HttpStatus.UNAUTHORIZED);

  private final String code;
  private final HttpStatus status;

  AuthErrorCode(String code, HttpStatus status) {
    this.code = code;
    this.status = status;
  }
}
