I am checking to see if a resource exists via Axios, it is normal to expect a 404 to be returned if it is not present.
But, when the 404 is returned, it is displayed in the console. I have tried to catch the error, but this does not prevent it from being displayed by chrome.
axios.get('/api/user/checkin').then((response) => {
Vue.set(UserStore,'checkin', response.data)
this.loading = false;
}).catch((error) =>{})
I am checking to see if the user is checked if they are I will return a record of when they checked in and some details on the site.
If they are not then I have nothing to return so I am returning a 404. I could return a blank record but that does feel very restful.