[HTTP] Solve the 406 not acceptable error

When a 406 error occurs, it means that it is a client error, and the client cannot parse the content returned by the server

Generally, in the accept header sent by the client, the allowed type is set, but the server does not return in this format

Accept represents the type of data that the sender (client) wants to accept.

If the type specified by accept is inconsistent with the content-type returned by the response, a 406, not acceptable error will occur

Modify the server to return in the specified format

Or modify the client to accept the format of the server

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *