T
TanStack2y ago
fair-rose

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
fascinating-indigo
fascinating-indigo2y ago
Use another type lol error: { status: string }

Did you find this page helpful?