When axios accesses the resource, how can I get the response body when the status code of the response is 404?

Axios how to get the response body if the status code of the response is 404 when accessing the resource?

Apr.07,2021
The error returned by

is contained in


axios.get(`url`)
    .then(function (res) {
        console.log(res.data);
    })
    .catch(function (err) {
        // err.response 
        console.error(err.response);
    })
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37e42-2ae13.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37e42-2ae13.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?