Why does this code show an error

HTTP 400 (Bad Request): What does the status code mean and how do you fix it?

Problems with HTTP header fields

As an internet user: delete cookies and reset browser

The HTTP 400 error also occurs if the HTTP header is too long. In principle, headers have no size limit. However, it is possible that the target server has set a limit. The header consists of several fields in which requests and responses are defined. When both digital call participants have compared the parameters, the requested data is exchanged. If this does not work, an error message will appear. Since it is a Communication between your browser and the web server and 400 errors are usually caused by problems with the client, the browser is probably responsible for the error. The best way to test if your default browser is generating the problem: temporarily switch to a different browser.

If the page view works in your test browser, switch back to your favorite web browser. The first step is to delete your Cookies (if you haven't already done this in a previous problem-solving attempt). This time, however, you are deleting not only one specific cookie, but all of them to be on the safe side. The reason: Cookies are also transferred within the header, because this is how the web server learns about your previous visit. If the browser includes too many of the entries in the request, the header could exceed the length limit.

If this attempted solution is unsuccessful, it makes sense to either completely reinstall the browser or reset to the factory setting. There are different ways to reset, depending on your browser. In Firefox switch through the input about: support to the help area for troubleshooting. Incidentally, you will also find a lot of information here to help you uncover errors in the software. This data is also important when you contact a support team. On the side you will also see a button with which you can "Clean up Firefox" can. One click first saves your current settings and then deletes the extensions and many settings.

in the Internet Explorer can be found in the Internet options under the tab "Extended"The button"Reset to default"Or (under IE 6)"restore standard". The Microsoft browser gives you the choice of whether you also want to delete your personal settings when you reset. Since Internet Explorer also includes cache and cookies among these settings, it is advisable to delete these as well.

At Chrome you can find the reset function in the system settings. The browser retains your personal data such as saved passwords and the history, but otherwise resets everything to the factory settings. Close and restart the browser for the changes to take effect.