Questions tagged [http-status-code-400]

400 Bad Request. Add this tag to a question if your requests receive this answer.

The request could not be understood by the server due to malformed syntax. The client should not repeat the request without modifications.

See also RFC2616.

806 questions
5
votes
2 answers

What HTTP status to use for good request with "bad" input?

I'm writing a microservice for validating promo codes. The client sends me a promo code and a product ID (json). There is the 200 OK case where the code is good, I apply a discount for their order. But there is an error-ish case where the promo…
wim
  • 338,267
  • 99
  • 616
  • 750
5
votes
2 answers

POST Request gives FileNotFoundException

POST request gives FileNotFoundException for the URL I am making an Http POST request to a Url https://nitos.gr in android. The url has not domain name. Stackoverflow does not allow me to include URL with numbers in my text, so i just write a random…
5
votes
1 answer

HTTP 400 Bad Request - CURL PHP

I am trying to send a PUT request using CURL, but i am getting HTTP 400 Bad Request, I am using CURLOPT_VERBOSE to debug and with that i am getting: "Error: malformed request: Expecting object found: \"email\""} Does anybody know what this means/how…
Karina
  • 665
  • 6
  • 17
  • 35
4
votes
2 answers

WCF Method giving 400 Bad Request in GET/POST method

I have newly created a WCF and m facing 400 bad req error when i try to hit the url from the browser. my service contract looks like [OperationContract] [WebInvoke(Method = "GET", UriTemplate = "GetUsers")] string GetUsers(); I have already made…
1Mayur
  • 3,419
  • 5
  • 40
  • 64
4
votes
2 answers

How to use Google Place Check-Ins in android

I used Google Places API to retrieve places in and around a particular location. By parsing the xml files, I get the required places and its details. I need to check in to a particular place. I couldn't know how to request through Http POST method.…
Manikandan
  • 1,479
  • 6
  • 48
  • 89
4
votes
2 answers

WCF 400 Bad Request

I created a simple function [OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json)] string Start(); Definition, public String Start() { JavaScriptSerializer serializer…
Tom
  • 208
  • 1
  • 4
  • 11
4
votes
1 answer

PayPal IPN HTTP ERROR 400 - PHP - Using PayPal GIT Code

PayPal Sandbox testing continuously provides the following error: http 400 - Bad Request Your browser sent a request that this server could not understand. I am using the git provided sample code from PayPal and am unable to get around this…
MBF
  • 336
  • 1
  • 4
  • 17
4
votes
4 answers

Twilio Channel - SMS 60200 Invalid parameter error (400 bad request)

I'm getting a "400 - Bad Request" error with Twilio API, but couldn't find the reason. Here's my request: curl --location --request POST 'https://verify.twilio.com/v2/Services/xxxxxxxxxxxxxx/Verifications' \ --header 'Authorization: Basic xxxxxxxxx'…
PiyushG
  • 41
  • 2
4
votes
1 answer

Sporadic 400 Bad Request Error nginx/0.7.67 with Heroku and Rails 3

UPDATE: This bug appears to be Browser Specific to Chrome. I've clicked the link about 50 times each in Firefox and IE and I can't seem to cause it. Also, once it is occurring, I can switch to FF or IE and it'll work fine on those two. I have a…
LennonR
  • 1,433
  • 18
  • 35
4
votes
2 answers

Converting Stripe API syntax to Google Apps Script

This SO answer correctly explains that since the require Node/JS library is not supported by Google Apps Script, the following code changes must be made to get Stripe to work properly in a GAS project: from const stripe =…
4
votes
1 answer

How can I identify the reason for an http 400 error code tomcat?

We are getting intermittent 400 response errors to some of our requests and I have tried to track down what is the cause of the 400. The access log from tomcat shows the 400 response. So I added in the request-dumper filter for tomcat. Looking…
Laura
  • 41
  • 1
  • 2
4
votes
2 answers

ReactJS- Youtube Data API request error 400

I was using YouTube Data API. I did set up the parameters but when opening network from developer tools it is showing error: 'Required parameter:part' axios code- import axios from 'axios'; const KEY='[my key]' export default axios.create({ …
4
votes
1 answer

Translation port causing Error 400: Reason: You're speaking plain HTTP to an SSL-enabled server port

A port translation is configured on a firewall with public address to redirect an https request from https://customdomain.fr:8443 to https://localIP-apache-server. The translation works well and the index.php page is displayed correctly. When i…
PapiDid
  • 49
  • 1
  • 5
4
votes
3 answers

Postman - 400 Bad Request

I am trying to hit API on Postman. The API is working on server but I am not receiving any data. Here are the visual images: It is responding me with "No Data" and 400 Bad Request.
UGandhi
  • 518
  • 1
  • 8
  • 28
4
votes
1 answer

Bad request error while adding a lookup GUID field in CRM database using Web API

I want to insert a new record in CRM's custom entity where one of the fields is of lookup type i.e. new_contactid and it is dependent on the contact entity. I have also referred Set Values of all Data Types using Web API in Dynamics CRM Through…