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

Rails form on ajax submission throws a 406 not acceptable error

I'm new to rails so I'm probably messing this up somehow (obviously). I have a form that is sending the submission back to the controller via ajax. This is that file /index.html.erb/ <% provide(:title,'PlanYourTask') %>
0
votes
1 answer

HTTP status code 406 appropriate for "Content not available in your country"? If not, what's appropriate?

I have a multilingual website. The content language is defined via the URL: www.example.com/en_gb/content/right/here/ To make sure search engines understand that the content is also available in other languages, I make use of the alternate links…
0
votes
1 answer

Rewritten URL causes 406 error

I'm trying to create a RESTful API and document. However I seem to be getting a weird error I can't figure out how to fix. This works: curl --header "Accept: application/json" http://api.example.com/v1/method.php?key=test However if you remove the…
kevc45
  • 741
  • 2
  • 8
  • 11
0
votes
1 answer

Spring mvc servlet-mapping and 406 http core

I'm working with Spring mvc 4 and glassfish 4 and I had some problems with ajax calls to return object as json, with @ResponseBody. Then I found a proper solution HTTP Status 406. Spring MVC 4.0, jQuery, JSON that it did not totally work on my…
fritsMaister
  • 532
  • 1
  • 4
  • 18
0
votes
1 answer

How to omit 406 http error?

I'm trying to download this file: http://www.macupdate.com/download/49646/privatus.dmg It gives me 302 http code, so, I get Location Header and go by a new address: http://sweetpproductions.com/products/privatus/Privatus.dmg But new link gives me…
Robotex
  • 1,064
  • 6
  • 17
  • 41
0
votes
1 answer

AFNetworking 2.0 and Request header

I'm using AFNetworking 2.0. I implemented my singleton class as subclass of: AFHTTPSessionManager + (RESTClientManager *)sharedManager { static dispatch_once_t onceToken; dispatch_once(&onceToken, ^{ _sharedInstance = [[self alloc]…
Safari
  • 11,437
  • 24
  • 91
  • 191
0
votes
1 answer

jquery.cookie.js mod_security error 406 and the question mark

ON a WordPress site, a plugin that I am using makes use of, jquery.cookie.js. My hosting provider makes use of mod_security prevented jquery.cookie.js from being server and resulted in error 406. As I looked at the failure in the Chrome development…
Richard
  • 261
  • 1
  • 3
  • 9
0
votes
1 answer

NetworkError: 406 Not Acceptable for jqgrid

I have a jqgrid to populate data which is coming from backend. Till controller i have data but its not getting rendered in grid.Enabling Fire bug says NetworkError: 406 Not Acceptable. I have jackson-core-asl-1.x.jar and jackson-mapper-asl-1.x.jar…
neel
  • 1
0
votes
1 answer

rails svg not acceptable

I am using google maps api and for the marker I am trying to use an svg file var marker = new google.maps.Marker({ position: coords, map: map, icon: '/assets/pin/pin.svg' }); The image actually is been displayed but I am getting a console…
Petran
  • 7,677
  • 22
  • 65
  • 104
0
votes
1 answer

Does curl require some server end configuration?

I am trying to use a windows 7 batch file to download a files from my website. This command works : curl -v http://jsonlint.com/c/images/logo_arc90.png > j.jpg This one does not : curl -v http://starlords3k.com/images/star_1001.png > s.jpg I get…
Mahks
  • 6,441
  • 6
  • 28
  • 31
0
votes
1 answer

Confusing 406 errors

I have a page in a Sitefinity website (http://www.pcma.org/attend-learn/topics) that is sending back 406 Not Acceptable errors for a few static javascript and css files. The strange thing is, it's only happening on www.pcma.org, not pcma.org…
superconnected
  • 696
  • 5
  • 3
0
votes
2 answers

HTTP Status Code 406

I am building a web server, I was wondering what status code should I use if the client wants to request this? PUT /index.html HTTP/1.1 Host: localhost:1111 Lets say the client is trying to add a new file to the server, but that file already exist,…
André Ferraz
  • 1,511
  • 11
  • 29
0
votes
0 answers

406 Not acceptable error on form submit 1

Im getting a 406 Not acceptable error on a php file. I'm using jQueryto submit. This is the code im getting 406 error on
zack
  • 484
  • 3
  • 9
  • 25
0
votes
1 answer

406 error in spring, json output with jackson mapper

i am getting a 406 error while running the below code on my localhost:- Controller Code:- //imports import AvailabilityReportService; import SAvailabilityReport; @Controller @RequestMapping("/service/*") public class SAvailabilityController { …
david419
  • 435
  • 3
  • 8
  • 18
0
votes
2 answers

windows phone push notifications 406 not acceptable

I'm getting 406 Not Acceptable as response when I try to send a push notification, I understand the problem and I've fixed the code that was causing it but I'm not quite sure how to make the error go away, the server responds with 406 to every one…
1 2 3
11
12