开发者

how to check error in json means 500 error in asp.net mvc

开发者 https://www.devze.com 2023-01-21 11:12 出处:网络
when i send json. it may be 开发者_开发技巧have something wrong. server does not accept request and give error 500 even i seding a json he return a error page in json. how i can check that i have 500

when i send json. it may be 开发者_开发技巧have something wrong. server does not accept request and give error 500 even i seding a json he return a error page in json. how i can check that i have 500 error in json when as result after my json is gone to server.

how i can check that server return 500 error i am talking about .NET


according to the docu

error(XMLHttpRequest, textStatus, errorThrown)

docu

and you need the enum-members of textStatus, which can be found here

0

精彩评论

暂无评论...
验证码 换一张
取 消