HTML Code in API response

Hello,
I’m making API call, than in response is sending HTML code. I have error:
Error: SyntaxError: Unexpected token < in JSON at position 0status: -1

I was trying to add content-type header, but it was not working. When I’m trying to use HTTP request, it makes successful call, but it’s not showing response. How can I fix this issue?