'use strict';
import { ApiError } from '../framework/index.js';
import { responseMessages } from './response-messages.js';
import { httpStatusCodes } from '../../constants/http-status-codes.js';

var __defProp=Object['defineProperty'],__name=(_0x340528,_0x41e506)=>__defProp(_0x340528,'name',{'value':_0x41e506,'configurable':!![]});function createApiError(_0xc9e8de,_0x43d26a){return new ApiError(_0xc9e8de,_0x43d26a);}__name(createApiError,'createApiError');function apiBadRequestError(_0x54836c=responseMessages['badRequest']){return createApiError(httpStatusCodes['badRequest'],_0x54836c);}__name(apiBadRequestError,'apiBadRequestError');function apiUnauthorizedError(_0x464996=responseMessages['unauthorizedError']){return createApiError(httpStatusCodes['unauthorized'],_0x464996);}__name(apiUnauthorizedError,'apiUnauthorizedError');function apiForbiddenError(_0x5b98b7=responseMessages['accessDenied']){return createApiError(httpStatusCodes['forbidden'],_0x5b98b7);}__name(apiForbiddenError,'apiForbiddenError');function apiNotFoundError(_0x1cb7e3=responseMessages['notFoundError']){return createApiError(httpStatusCodes['notFound'],_0x1cb7e3);}__name(apiNotFoundError,'apiNotFoundError');function apiTooManyRequestsError(_0x19e39f){return createApiError(httpStatusCodes['tooManyRequests'],_0x19e39f);}__name(apiTooManyRequestsError,'apiTooManyRequestsError');function apiMethodNotAllowedError(_0xa0baf){return createApiError(httpStatusCodes['methodNotAllowed'],_0xa0baf);}__name(apiMethodNotAllowedError,'apiMethodNotAllowedError');function apiConflictError(_0x2bd6fb){return createApiError(httpStatusCodes['conflict'],_0x2bd6fb);}__name(apiConflictError,'apiConflictError');function apiInternalServerError(_0x22b264=responseMessages['internalServerError']){return createApiError(httpStatusCodes['internalServerError'],_0x22b264);}__name(apiInternalServerError,'apiInternalServerError');

export { apiBadRequestError, apiConflictError, apiForbiddenError, apiInternalServerError, apiMethodNotAllowedError, apiNotFoundError, apiTooManyRequestsError, apiUnauthorizedError, createApiError };
