Jump to content

what is this? Not Acceptable


Yohanne

Recommended Posts

Hai All.

 

i got this message from the site where i am the admin. and i don't have any idea if what is this message means? any body here experience like this notification/message and can you help and assist what wrong with this?

 

Not Acceptable

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

 

 

 

Thanks

Link to comment
Share on other sites

The server has experienced a 406 error and tried to handle it using some sort of error document but couldn't find the error document and has informed you of this.

 

406 Not Acceptable

 

The resource identified by the request is only capable of generating
response entities which have content characteristics not acceptable
according to the accept headers sent in the request.

 

- RFC2616 HTTP/1.1, pp 67. Available at: https://tools.ietf.org/html/rfc2616#page-67

Link to comment
Share on other sites

Not necessarily, the response served up by the server is a 406, but in the process of handling the 406 it found a 404 as the error document couldn't be found. A simple visulisation:

 

Client                  Server                 File System
           Request
   |---------------------->|                        |
   |                       | Handle Request         |
   |                       | 406                    |
   |                       |   Get error document   |
   |                       |----------------------->|
   |                       |                        |
   |                       |  Document not found    |
   |                       |<-----------------------|
   |  406 with 404 error   |                        |
   |<----------------------|                        |

That said, PHP or something else could just be setting the HTTP status code and sending the response. 

Edited by cpd
Link to comment
Share on other sites

When a browser (or any other client) sends a request (such as "GET index.php"), it sends several headers. One of those indicates the type of response the client is prepared to accept:

Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
The "*/*" on the end indicates "I'll take anything you can give me", but the "q=0.8" indicates a preference value (i.e. I would rather have the stuff listed in the "q=0.9").

 

 

That message would indicate to me that a request was made without the "*/*" on the end, and the output that the WEB server found to send does not match any of the "Acceptable" types.

 

Do you need to debug it? That depends on what triggered the error, and what you want it to do in that case. Is this a response you got through a standard browser request or are you reading this from the logs?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.