/**
 * HTTP-related constants used across the application
 */

/**
 * HTTP Headers
 */
export const HTTP_HEADERS = {
  /**
   * Organization context header
   * Note: Node.js normalizes all headers to lowercase, so we use lowercase consistently
   */
  WORKOS_ORGANIZATION_ID: 'workos-organization-id',
  AGENT_ORGANIZATION: 'x-agent-organization',
  AGENT_MODE: 'x-agent-mode'
} as const

/**
 * HTTP Status Codes for organization-related operations
 */
export const ORG_HTTP_STATUS = {
  ORG_ACCESS_DENIED: 403,
  ORG_CONTEXT_REQUIRED: 400,
  USER_NOT_FOUND: 404,
  ORG_NOT_FOUND: 404
} as const

/**
 * Organization-related error codes
 */
export const ORG_ERROR_CODES = {
  ORG_ACCESS_DENIED: 'ORG_ACCESS_DENIED',
  ORG_CONTEXT_REQUIRED: 'ORG_CONTEXT_REQUIRED',
  USER_NOT_FOUND: 'USER_NOT_FOUND',
  AUTH_REQUIRED: 'AUTH_REQUIRED',
  ORG_NOT_FOUND: 'ORG_NOT_FOUND'
} as const
