UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

10 lines (8 loc) 291 B
import Boom from 'boom'; export function handleShortUrlError(err) { if (err.isBoom) return err; if (err.status === 401) return Boom.unauthorized(); if (err.status === 403) return Boom.forbidden(); if (err.status === 404) return Boom.notFound(); return Boom.badImplementation(); }