Stop from directing to the Error page
[issue link]I have setup an Error page like its described in the docs. But now whenever I send a status of bad request in the response, its going to the Error page.
primaryBtn() {
if (!this.$store.state.authenticated) {
this.book_error = 'Please login to continue.'
}
else {
const day = `${this.selected_date} ${this.selected_time}`
const url = `api/check/`
const data = {
"date": moment(dt, "DD MMM YYYY").format('YYYY-MM-DD'),
"time": this.selected_time
}
this.$axios.post(url, data)
.then(response => {
// OK
})
.catch(error => {
// Object not found response... REDIRECTS to the Error page.
})
}
}
I would like to have an Error page, but in this case I need to display the error message in the Present page, instead of redirecting to the Error page. Is there anyway to stop from redirecting to the Error page?