How to handle ajax 201

后端 未结 5 1051
说谎
说谎 2020-12-31 09:16

When making a ajax call see example below success does gets a 201 status retuned. How do you handle these better i.e. 200, 201 within the succe

5条回答
  •  傲寒
    傲寒 (楼主)
    2020-12-31 10:12

    Data inserted successful but jquery still returning error

    The answer here appears to be a work around you can use for now. However, if you're using cross-domain, AJAX has some issues with that. Check out this SOF thread on it:

    Problems Reading the HTTP Status/Error Code from jQuery AJAX

提交回复
热议问题