HTTP-Statuscode on useFetch()
hi,
I wanted to use "useFetch" to query data from an API.
How do I get the HTTP status code from the response?
5 Replies
I almost thought so
I don't know if it's me, but when I make myself a routeRules
then i get "ECONNREFUSED" in the server-console
browser console works without problems
make the requests with axois, for the statuscode
I'd use
$fetch.raw
+ useAsyncData 🙂
i have made a function that calls this up, how do i do it there?
$fetch.raw(
works so far, thank you.
How do I call up the status code for a 4xx?
it throws an exception.
nvm "ignoreResponseError"