Questions tagged [http-status-code-406]

The HTTP response status code 406 Not Acceptable

The requested resource is only capable of generating content not acceptable according to the Accept headers sent in the request.

See also RFC2616.

176 questions
1
vote
1 answer

406 Not Acceptable error on jQuery :remote => true link

I am submitting a delete request through an anchor tag link, and using :remote => true to submit it via JS to use jQuery. I've done this in two other instances which are identical to this, with no problem at all. But for some reason, this one is…
1
vote
0 answers

Error 406 Not Acceptable with idHTTP on Delphi

I'm stucked with one problem here. I need to upload data from Delphi App (or service) to web site using PHP scripts. I tried the IdHTTP.Post method but always receive HTTP/1.1 406 Not Acceptable response. I really don't know if is a server-side…
alijunior
  • 317
  • 1
  • 12
1
vote
1 answer

Springfox-Swagger2 406 not acceptable error -Spring 4

Hi I am getting "The resource identified by this request is only capable of generating responses with characteristics not acceptable according to the request "accept" headers" error i.e Http 406 not acceptable. I am using the below dependencies for…
1
vote
1 answer

406 (Not Acceptable) iron-ajax

This is my code. If i…
Vivek Malhotra
  • 751
  • 2
  • 7
  • 17
1
vote
1 answer

Drupal8 REST-api for taxonomy terms do not work

I am writing an Angular2 web app with Drupal8 in the backend. I need to convert taxonomy id's to their respective labels, for that I want to use the API endpoint "/taxonomy/term/{taxonomy_term}". I have enabled the correct REST-API and given access…
rasmusrim
  • 115
  • 1
  • 10
1
vote
2 answers

Post request works but Put request doesn't in angular 2

I make a PUT request to a Rest API in angular 2 but it's not working. When I make the same request with POST, it works fine. This is my view : save(){ this.params['user_id']=this.user_id; this.params['video_id']=this.video_id; …
Adrien Castagliola
  • 911
  • 2
  • 11
  • 30
1
vote
1 answer

Plivo inbound SMS blocked by Modsec?

Oh, boy - this is a new one for me. I've had a Plivo-powered SMS application running (more or less flawlessly) for several months. 2 days ago, for no reason, it stopped responding to my inbound texts. I didn't have a lot of time to figure it out…
Helpful
  • 702
  • 4
  • 16
1
vote
1 answer

GET request works on local, returns HTTP 406 on test server

I'm using AngularJS 1.4 and a Spring 4 RestController. When I make a GET request on my development machine, everything works fine. But when I deploy the exact same war file to our test server, exact same request from exact same browser returns HTTP…
uylmz
  • 1,480
  • 2
  • 23
  • 44
1
vote
1 answer

Spring MVC + RestController gives 406 for resources

i am configuring my project for a small rest app. I am using Spring 4.2.2.RELEASE I have a problem when i create a controller annotated with @RestController or I add @ResponseBody. The css or js resources just stop working and send the error 406 Not…
jaxkodex
  • 484
  • 2
  • 6
  • 17
1
vote
2 answers

How do I bypass Accept header validation in IIS?

I have a Nancy website hosted on ASP.Net with a number of custom routes. These routes include mappings which look like file paths (e.g. /path/to/xml_file.xml), but that resolve to HTML files which should display in the browser. For most files, this…
erdomke
  • 4,980
  • 1
  • 24
  • 30
1
vote
1 answer

Failed to load resouce: the server responded with a status of 406 (Not Acceptable)

I'm getting this error in browser console log, both chrome and firefox GET doaminipaddress.port/n/d85639d2ff510307eedab9f654a0d8a4.js?q=y52W3GiXHD…886&url=http%3A%2F%2domain.net%2Fassets%2Fscripts%2Fjquery.min.js 406 (Not Acceptable) but the…
Shehary
  • 9,926
  • 10
  • 42
  • 71
1
vote
0 answers

What are the causes of HTTP 406 error

We are using newrelic to monitor our enterprise website. We have been noticing a large number of HTTP 406 error logged in newrelic. These error are especially occurring for JPG images. Weird thing is when I copy paste the jpg URL it works fine with…
Nil Pun
  • 17,035
  • 39
  • 172
  • 294
1
vote
1 answer

(Browser-as-Client) HTTP 405 on $.ajax POST to a Node service

BACKGROUND First things first, I have a Restify service running on Node which is working perfectly when I use a GUI HTTP client. I only state the previous to highlight, that this is a browser-centric issue. And if a server-side solution is needed,…
1
vote
0 answers

406 Not Acceptable on MacOSX Maverick

I am really new for Mac OSX, I had develop the web based application while communicate with another server. Tried before on Linux, the scripts works well, but when I tried to implemented on Mac OSX server I got the error:
da_root
  • 364
  • 2
  • 11
1
vote
1 answer

406 Not Acceptable for List - REST

I am trying to find a way instead of Wrapper class but I always get 406 Not Acceptable error. I searched online and tried many different ways but couldn't fix it. @RequestMapping(value = "/users/getlist", headers="Accept=application/xml,…
likeachamp
  • 765
  • 4
  • 11
  • 21