import { ApiError } from '@dvn/core/api';
export function unauthorized() {
  const error = new ApiError('network');
  error.status = 401;
  return error;
}
export function notFound() {
  const error = new ApiError('network');
  error.status = 404;
  return error;
}
export function notImplemented(message = '') {
  const error = new ApiError('network');
  error.status = 501;
  error.statusText = message;
  return error;
}
