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
19
votes
5 answers

Microsoft Teams Webhook Generating 400 for Adaptive Card

I have a functioning webhook to a Teams channel to which I can successfully post messages. I am now trying to post an adaptive card to the webhook. Using Postman and performing a Post to https://outlook.office.com/webhook/xyz, with Content-Type…
18
votes
5 answers

Server returned HTTP response code: 400

I am trying to get an InputStream from a URL. The URL can be a opened from Firefox. It returns a json and I have installed an addon for viewing json in Firefox so I can view it there. So I tried to get it from Java by: URL url = new…
Tapas Bose
  • 28,796
  • 74
  • 215
  • 331
18
votes
4 answers

How to reupload a package to PyPI?

I upload a package to PyPI, but I got some trouble after upload, so I delete it completely, and I tried to re-upload, but there are some error after upload again: HTTP Error 400: This filename has previously been used, you should use a different…
zeleven
  • 436
  • 1
  • 6
  • 21
18
votes
7 answers

Socket.io bad request with response {"code":0,"message":"Transport unknown"}?

I'm trying to run socket.io and I'm getting a bunch of these: http://domain.com:8080/socket.io/?EIO=2&transport=polling&t=1401421022966-0 400 (Bad Request) This is the response I'm getting: {"code":0,"message":"Transport unknown"} I can't find…
JVE999
  • 3,327
  • 10
  • 54
  • 89
17
votes
12 answers

Firebase storage security rules 400 error issue "Permission denied. Could not access bucket xxxxx-****.appspot.com"

I keeps getting message error from firebase link saying 400 error with my firebase storage upload in my react project when trying to upload photo... everything were working fine before and uploads images successfully, but now it stop uploading of…
15
votes
2 answers

How to customize @RequestParam error 400 response in Spring MVC

Is there a way to customize what gets displayed when a required @RequestParam is not sent to the request handler? I always get HTTP Status 400 with a description "The request sent by the client was syntactically incorrect ()." in this case.
rustyx
  • 80,671
  • 25
  • 200
  • 267
15
votes
2 answers

HTTP status code to return by a REST API when image size exceeds limit

A POST to a specific end point allows to upload an image except if the image is too large, so I want to return the appropiate http status code response in that case. A http status code 400 response it does not seem to fit well in this case. 400 Bad…
rfc1484
  • 9,441
  • 16
  • 72
  • 123
12
votes
2 answers

Using a WebClient and C#, how do I get returned data even when the response is (400) Bad Request?

I am using the Google Translate API and am trying to capture the data returned when I get an error. (FYI: I know the API Key is wrong, I am just testing this). The issue is that the browser, as you can see by clicking the link, displays the error…
Mike Webb
  • 8,855
  • 18
  • 78
  • 111
11
votes
0 answers

400 status error when posting form data in ASP.Net Core

I am developing an ASP.Net Core 2.0 application and run it on Linux/Nginx/Kestrel. On the development environment (Windows 10) everything runs smoothly. Also when running the app with "dotnet run" in the project directory. On the production…
Herdy
  • 139
  • 1
  • 9
10
votes
1 answer

Google logo, map tiles and other google images don’t load in Chrome (HTTP 400)

There are several similar entries in stackoverflow for this error (HTTP 400), but I haven't found anything relevant to mine; so if this is already answered... my apologies. Chrome is my default browser, and I use many Google services everyday, like…
osman
  • 635
  • 4
  • 17
10
votes
1 answer

Distinguishing HTTP status code 403 and 409 in practice (or 400)

Even after reading many documents, books, spec I couldn't 100% be certain whether I should use http status code 403 or 409 in my case. Some argue that 403 should be used only with an authorization issue, but seeing twitter's api using 403 for update…
9
votes
2 answers

Again urllib.error.HTTPError: HTTP Error 400: Bad Request

Hy! I tried to open web-page, that is normally opening in browser, but python just swears and does not want to work. import urllib.request, urllib.error f =…
Wanu
  • 93
  • 1
  • 1
  • 5
8
votes
2 answers

Add *.googleusercontent.com to Authorized JavaScript origins

We have an add-on for Google Sheets and would like to switch other Google accounts for some functions. Half a year ago, I successfully added a URL (https://***.googleusercontent.com) to Authorized JavaScript origins and a URL…
8
votes
2 answers

"Required parameter: pageToken" error when attempting to register Google Drive webhooks

Following the guide here, I'm trying to set up Google Drive "push notifications" (webhooks) so I can watch for all file changes. I need to send a one-off POST request to https://www.googleapis.com/drive/v3/changes/watch to initially "register" the…
8
votes
2 answers

jOOQ: DataAccessException and constraints

I am implementing a REST API with Jersey and jOOQ. I have a table with some constraints, for example a unique key. When inserting a tuple which violates this constraint, jOOQ throws a DataAccessException: org.jooq.exception.DataAccessException: SQL…
user4597030
1
2
3
53 54