Preparing for system design interviews?  Try bugzed.com →

Vue Axios Interceptors

JSON →
library 0.3.2 ·javascript
verified Jun 7, 2026

A lightweight Vue.js plugin that registers global Axios response interceptors and exposes a global event bus (window.intercepted) to catch and handle AJAX errors uniformly across the application. Version 0.3.2 (no recent releases) is designed for Vue 2 and requires Axios and Vue to be available on the window object. It emits events by status code category (e.g., 'response:4xx', 'response:500') and specific codes (e.g., 'response:404'), with special parsing for Laravel 5.5+ 422 validation errors (body becomes a key-value object). Differentiates from manual interceptors by providing a ready-made event system; minimal setup but limited to Vue 2 and global window dependencies.

total hits 6
actors 1 distinct systems
last hit 19d ago Bingbot
Search engines
1
Humans
5

top countries 🇸🇬 Singapore · 🇵🇰 Pakistan · 🇫🇷 France · 🇺🇸 United States