Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

364 B
Raw Blame
import { createErrorFactory } from '../shared/errors/errors';

// Error when the authentication is not using an API key but the route is api-key only
export const createNotApiKeyAuthError = createErrorFactory({
  code: 'api_keys.authentication_not_api_key',
  message: 'Authentication must be done using an API key to access this resource',
  statusCode: 401,
});