import { GraphQLError } from 'graphql'; export default class AuthenticationError extends GraphQLError { public readonly code: number = 401; constructor(message: string = 'Authentication error. Please provide correct phone and password') { super(message); } }