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

How to catch a 400 response in jQuery getJSON call

In jQuery I want to fetch some data from facebook using the $.getJSON() method, but if the token is invalid, Facebook is returning the 400 status. How I can catch the error in $.getJSON() instead of $.ajax()?
Muhammad Usman
  • 10,426
  • 22
  • 72
  • 107
8
votes
2 answers

Mercurial keeps returning Error 400: Bad Request

Anytime I try to do any interaction with the server, Mercurial returns "abort: HTTP Error 400: Bad Request". We are not using any authentication, so that's not an issue. We have three other developers working on the same repo with the same version…
bigronaldo
  • 211
  • 2
  • 5
7
votes
2 answers

HTTP Status 400 - Required Integer parameter 'id' is not present

I have a problem when I build a Spring + Spring MVC + Hibernate + MySQL project. Everything works fine but when I get "editpage" and then want to post editing information into MySQL, I get the following error from my Tomcat: HTTP Status 400 -…
O.Kuz
  • 377
  • 3
  • 5
  • 18
7
votes
2 answers

HTTPWebRequest & After a while, 400 (Bad Request) starts

I have a background worker thread that is constantly syncing data to/from a remote server. When I first run the app, everything appears to work fine. It makes the web request about every 30 seconds and the data returns successfully. If I leave the…
Chris Kooken
  • 32,730
  • 15
  • 85
  • 123
6
votes
1 answer

Dreaded WCF BAD request 400 due to maxReceivedMessageSize still being 65536

God don't you just love WCF. I read all possible threads but I am really stuck now. Here is WCF configuration:
Valentin Kuzub
  • 11,703
  • 7
  • 56
  • 93
6
votes
6 answers

AxiosError : Request failed with status code 400 (in React JS)

I am trying to post comments using axios. When I submit my datas entered in the form, I see this error in the console : AxiosError {message: 'Request failed with status code 400', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request:…
Emilie Tossan
  • 127
  • 1
  • 1
  • 16
6
votes
1 answer

HTTP status codes when errors in the request body

Can someone please clarify what status codes should I expect from following situations? For instance, I am sending POST request with such body format: { "id": 321, "username": "tombrown", "email": "tombrown@gmail.com", "password":…
6
votes
2 answers

The request entity cannot be empty

I am new to Jax-RS. I am trying to implement a simple GET method using jersey. I am getting the correct output for the Collection resource, but I am getting "ERROR 400 Bad Request" for instance resource . I am stuck at this point. Everything…
6
votes
1 answer

Spring form ModelAttribute field validation to avoid 400 Bad Request Error

I've got an ArticleFormModel containing data sent by normal html form which is injected by Spring using @ModelAttribute annotation, i.e. @RequestMapping(value="edit", method=RequestMethod.POST) public ModelAndView acceptEdit(@ModelAttribute…
Mateusz
  • 3,038
  • 4
  • 27
  • 41
6
votes
2 answers

It's possible signalR client web to connect a server on a different PC?

I have a console application who is the signalR server, on my PC. I have a html page who is a signalR client on internet. But i try to connect the server but I have a bad request 400 error. If the server is down i have a another reponse. It's…
Oberon
  • 61
  • 1
  • 1
  • 3
5
votes
2 answers

App Engine HTTP Status Code message

I found an inconsistency between Java's dev_appserver and the live App Engine server. On my local development server I have a Servlet which returns: return response.sendError(response.SC_BAD_REQUEST, "Please log in to comment"); When I access the…
Luca Matteis
  • 29,161
  • 19
  • 114
  • 169
5
votes
0 answers

npm publish: verbose stack Error: 400 Bad Request

I use npm publish return the error 400 Bad Request, I tried the method with next steps: delete node_modules npm cache clean -f npm install npm audit But its not working. If you have the same trouble or solution method,please tell me,thanks! My env…
clark
  • 51
  • 2
5
votes
2 answers

How to Avoid throwing 400 errors from ExpressJS

Background: I am getting 400 errors (and a blank 400 page response) from a malformed cookie on my site (coming from one of my affiliate pages). I have wrote a code to delete the cookie, but some of my customers still get an error because it's in…
5
votes
1 answer

Getting Response code was not 101: 400 in Java Websocket API client

I have the following WebSocket client code in Java. final ClientEndpointConfig cec = ClientEndpointConfig.Builder.create().build(); ClientManager client = ClientManager.createClient(); client.connectToServer(new Endpoint()…
alayor
  • 4,537
  • 6
  • 27
  • 47
5
votes
3 answers

400 bad request in google translate free api using curl

I am trying to use free Google Translate API which is extracted from Firefox's S3 Google Translator addon,…
Vaibhav Gupta
  • 1,592
  • 1
  • 13
  • 23
1 2
3
53 54