Well 400 code error is that you are trying to PUT/DELETE/GET/POST an incorrect link, also it would be good to show us your code so it can be more clear.