Instead of placing .catch() after my Ajax calls to mock the API, maybe consider using Mock Service Worker. I can then reuse this mock for testing, development and debugging instead of forgetting to remove the code when the backend work is done 😉