406 status code

_navin9898
Tera Expert

Dear community members,

Good Day!

I am working on integration using flow designer integration hub. I am updating (PUT) a record in third party application based on some inputs. Now the issue is in response I am getting an error status code 406.

I tried to explore it and found that this error code is due to client has request a response using Accept headers that the server is unable to fulfill. 

Could someone please let me know how can I resolve it?

 

Note: I change the Accept header to application/xml from application/json as when I hit the endpoint using postman, I got the response in XML format.

 

Best Regards,

Navin

1 ACCEPTED SOLUTION

Hi Navin,

the headers look good; may be you will have to check with the 3rd party team and inform about this issue.

This is something they can help into since it is their endpoint and they should give details on how to consume the endpoint and with what request body etc

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Navin,

Did the 3rd party team give sample request and response format also any http header info to be included if it is REST based?

Is it SOAP based or REST based endpoint

Regards

Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Hi Ankur,

I got only the endpoints.

Also I can see if I hit other tables within third party application, I am getting response in JSON format.

However for one particular table, the response is in XML format and issue is there for this table only.

I have included accept - application/xml and content-type - application/json (since I am sending payload in JSON format) headers in request. Although it is not working.

Please let me know if you need more info.

 

Best Regards,

Navin

Hi Navin,

the headers look good; may be you will have to check with the 3rd party team and inform about this issue.

This is something they can help into since it is their endpoint and they should give details on how to consume the endpoint and with what request body etc

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Thanks Ankur, I will check the same with third party team.

 

Best Regards,

Navin