Can http request 400 receive the response parameter?

excuse me, the httpCode returned by the http request must be 200 before the request is successful. I now have a third-party interface. The backend says it cannot be changed, and the request returns 400. tell me to judge, will it work?
Note: it is a requirement to enter the account secret to log in. If you enter the correct account secret, you can request 200. if you enter the wrong account secret, you will return 400. how can I judge the login failure? -sharp-sharp-sharp problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Apr.30,2022

both the status code and the response content are readable as long as the link is not broken.

and it doesn't mean that 200 is a success. Normally, anything within the [200,300) range can be considered a success.

how to judge depends on which request framework you use, but in the browser environment, any (HTTP) request framework uses XMLHttpRequest to make requests. For this:

  

the reason why bad Request returns 400 on the server side is that the request is caused by incorrect parameters (Note: the parameter name may not be the same as the name of the backend). If the ajax request is encapsulated in the framework, you can also use res.statusCode = = 400 to judge, and then do the next logical processing

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e844e8-cc6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e844e8-cc6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?