How to get the http error code for the ajax of zepto. It is necessary to jump to the page according to the error code.

as the title: how does the ajax of zepto obtain the http error code? to jump to the page according to the error code

Apr.11,2021

the first parameter of the error callback. The status attribute of xhr is the http status code.

you can print out xhr , including statusText

.
Menu