Answer
Use ajaxStart and ajaxStop for global loaders.
Use ajaxError for centralized error handling.
Use $.ajaxSetup() for headers and tokens.
Use ajaxError for centralized error handling.
Use $.ajaxSetup() for headers and tokens.