import HTTPStatus from 'http-status-codes';

/**
 *
 * @param {*} err 
 */
const awsErrorHandler = err => {
  let status = HTTPStatus.INTERNAL_SERVER_ERROR;


  return {
    error,
    status,
    message,
  };
};

/**
 *
 * @param {*} err 
 */
const drinkErrorHandler = err => {
  let status = HTTPStatus.INTERNAL_SERVER_ERROR;


  return {
    error,
    status,
    message,
  };
};

/**
 *
 * @param {*} err 
 */
const gameErrorHandler = err => {
  let status = HTTPStatus.INTERNAL_SERVER_ERROR;


  return {
    error,
    status,
    message,
  };
};

const utilities = {
  gameErrorHandler,
  awsErrorHandler,
  drinkErrorHandler,
};

export default utilities;
