Http status code 406 (Not Acceptable) error Problem Solution

Status code 406: one kind of the HTTP protocol status code indicating the requested content can not be used to respond to the page request characteristics. That the white background of the results returned to the front desk can not resolve the reported 406 errors.

Status code: 406, the request header (Request Headers) see request information is json format, in response to the head (Response Hraders) found in the returned information formats are "text / html", the foreground can not be resolved, the results need to be converted into json format returned to the front desk.

Before changing the code:

 

After the code changes:

Published 141 original articles · won praise 33 · views 50000 +

Guess you like

Origin blog.csdn.net/qq_43560721/article/details/103595246