[Vuejs]-Fetching APIs while doing full-stack dev

0👍

Its generally a good idea for the backend to handle the error messages, whenever they are generic or something specific, then on the frontend we just show that error message.
With this approach you wont struggle on the frontend in order to determinate which error code example: if res.status == 403 || res.status === 404.
The only thing you care about is error.message

Leave a comment