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

I'm getting a 406 response error when I try to make a https request (Note: no error when i use just http)

I'm using the cordova file-transfer plugin in order for users to upload pictures within my app. My code works perfectly when making a normal http request to the php page on my server. I would like to make a secure request so am trying to use https…
Sarah
  • 1,943
  • 2
  • 24
  • 39
0
votes
2 answers

REST API call in ionic

Im having trouble making REST API calls in my ionic app to my server. It shows the following error. ionic.bundle.js:25005 OPTIONS https://website.com/api/ionic_test 406 (Not Acceptable) XMLHttpRequest cannot load https://website.com/api/ionic_test.…
Salman
  • 389
  • 4
  • 22
0
votes
1 answer

Spring MVC - Error code 406 with specific url parameter

I develop a Spring MVC application with a REST API. I have this method in a controller : @RequestMapping(value="/roomId/{roomId}",produces = "application/json") public List findBySiteAndRoom(@PathVariable("roomId") String roomId,…
Rémi NUYTS
  • 73
  • 1
  • 6
0
votes
1 answer

Spring 406 status code issue for .com as pathvar

I have the following controller method: @RequestMapping(method = RequestMethod.GET, value = "/account/{loginId:.+}") public @ResponseBody CloudWebServiceResponse getLogin(@PathVariable(value = "loginId") String loginId) throws…
Azim
  • 1,043
  • 13
  • 27
0
votes
1 answer

"Not Found: /406.shtml" from django

I'm running django with apache fcgi on a shared host. I've set it up to report 404 errors and keep seeing Not Found: /406.shtml via emails (I'm guessing the s is because it's https only). However I have error documents already set up in…
jozxyqk
  • 16,424
  • 12
  • 91
  • 180
0
votes
0 answers

How to send json from spring-mvc controller to angularjs

I am trying to develop a simple application using angularjs and spring mvc restful web service. At first, I have to load the index file where it makes an http call http://localhost:8088/angular/demo to get some json data from the server. But I get a…
sargenem
  • 45
  • 1
  • 7
0
votes
1 answer

406 response with a $.post request jQuery to external PHP

I'm trying to post large amounts of text via $.post in jQuery and getting a 406 response. It works fine under around 300 characters. Below is my code: index.php html