T
TanStack2y ago
like-gold

How to know HTTP status code in `onError`

onError = (error: Error) => {

}
onError = (error: Error) => {

}
error does not have http status code, Is there any way to know http status code?
1 Reply
conventional-tan
conventional-tan2y ago
Use another type lol error: { status: string }

Did you find this page helpful?