Forum Discussion

swati1's avatar
swati1
Occasional Contributor
5 years ago

Getting bad request error

I am getting this below error , Kindly provide any solution.

 

HTTP/1.1 400 Bad Request
Content-Type: text/html; charset=us-ascii
Server: Microsoft-HTTPAPI/2.0
Date: Wed, 14 Aug 2019 09:42:00 GMT
Connection: close
Content-Length: 311

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN""http://www.w3.org/TR/html4/strict.dtd">
<HTML><HEAD><TITLE>Bad Request</TITLE>
<META HTTP-EQUIV="Content-Type" Content="text/html; charset=us-ascii"></HEAD>
<BODY><h2>Bad Request</h2>
<hr><p>HTTP Error 400. The request is badly formed.</p>
</BODY></HTML>

2 Replies

  • JHunt's avatar
    JHunt
    Community Hero

    The server didn't receive what it was expecting from you for this type of request.

     

    Check the spec to see if you included all the mandatory fields, headers, authentication data. And check if you have a syntax error, e.g. in your XML/JSON.

  • Hi swati1 ,

     

    This error occurs when the request body is invalid or when something is missing from the Request headers, for correcting it refer the document if it a 3rd party API or if it is internal then took a help from developer.