Can I throw error in axios post based on response status
If you give a look at the GitHub Project Page you will notice following option description. /* `validateStatus` defines whether to resolve or reject the promise for a given * HTTP response status code. If `validateStatus` returns `true` (or is set to `null` * or `undefined`), the promise will be resolved; otherwise, the promise will … Read more