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
0
votes
3 answers

Status code 400 while making POST request in swift

I keep getting this error which I don't know how to resolve! I'm trying to parse access token from a web API and for that I've set up post request. Somehow it's throwing an error on 'responseString' line. import UIKit import Foundation class…
user2832411
  • 105
  • 1
  • 11
0
votes
1 answer

Imgur API (400 Error)

To whom it may concern, Am I missing something? Trying to do a simple post to Imgur via their API. My HTML
0
votes
2 answers

Get an java.io.IOException: Server returned HTTP response code: 400 for URL but can access it fine in browser

The parameter I tried passing was "Submitted_By:test2 OR Submitted_By:test". If I copy and paste the exact URL in the error message I can access the URL just fine. When passing a parameter such as "Submitted_By:test2" it works fine but when adding…
Schwarz
  • 395
  • 4
  • 18
0
votes
1 answer

Java Spring: How to handle HTTP Status 400?

I'm trying to handle a HTTP Status Error 400. I think that this occurs due to a type mismatch. So e.g. http://localhost:8080/app/info.htm?id=123 works while http://localhost:8080/app/info.htm?id=abc doesn't. @RequestMapping(value = "/info",…
baris1892
  • 981
  • 1
  • 16
  • 29
0
votes
1 answer

AFNetworking POST Request failed Code=-1011 (400)

I have a webservice and I can successfully make post calls to it via Postman utility. On Postman the settings are I using AFNetworking. This my code: AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; NSDictionary…
runia
  • 370
  • 6
  • 19
0
votes
1 answer

Server giving http 400 error after WebSocket handshake request

I'am trying to achieve an open source CometD library in C, to be able to run a CometD client on barely any given device. The Long_Polling technique to handshake and communicate with the server is done, so logically i have to give the WebSocket…
Hakeem El Bakka-lee
  • 756
  • 1
  • 7
  • 23
0
votes
4 answers

Java Spring Restcontroller Post

I need help creating a POST request to my Java Spring Restcontroller. This is my controller - @RestController @RequestMapping("hedgesimulator/") public class HedgeSimulatorController { @RequestMapping(value = "hedgesim/", method =…
mikepetretta
  • 1
  • 1
  • 1
0
votes
1 answer

Tomcat Throws Back 400 When I Post a JSON Array

I am posting the following JSON to Tomcat server but Tomcat server returns 400 without even calling the servlet - [ { "q": { "field": "uri", "value": "c:Data#part3" }, "uri_pre_select": true …
sgsi
  • 382
  • 1
  • 8
  • 18
0
votes
0 answers

HTTP 400 on hitting Restful post service defined using Spring 4 MVC and MappingJackson2HttpMessageConverter

I'm trying to create a restful controller using Spring 4 MVC and testing it with Fiddler by hitting the below mentioned RestFul Post web service but getting HTTP/1.1 400 Bad Request as response, after i have added MappingJackson2HttpMessageConverter…
FiendFyre
  • 157
  • 3
  • 17
0
votes
1 answer

Does HTTP status code 400 mean I can assume authentication worked?

If I was getting status 403 earlier, then changed something and started getting a 400, can I assume the basic auth part worked?
Manoj
  • 58
  • 6
0
votes
0 answers

Angular $http.post 404 and 400 but why?

I keep getting response 400 bad JSON when I send in $scope.result when $scope.result = result.id. I get 404, not found when I pass result.id or $scope.result when $scope.result = result. I'm trying to post from Angular to my Express server with the…
rashadb
  • 2,515
  • 4
  • 32
  • 57
0
votes
2 answers

Node.js Deployd 404 error on dpd.get & 400 error on dpd.put when using id parameter

Basically what the title says - I've been getting a 404 Not Found on all ids that I enter for "id": dpd.items.get("id", function(results, error) { console.log(results); }); And a 400 Bad Request on any value of…
0
votes
1 answer

error 500 setting header to return 400 error PHP

I'm developing a RESTful web service and, honestly, it is my first ws. I decided to use PHP because I think that I know that language. This is my RestHandler object, but when I debug the request, accessing to a method not implemented, with Charles,…
Luca D'Alberti
  • 4,749
  • 3
  • 25
  • 45
0
votes
1 answer

Adding a