Api request http error HTTP/1

Hello everyone,

When I make a request to the API, for example, I’m trying to generate articles for 6 subheadings, it successfully generates 4 of them but fails to generate the other two. Additionally, I receive an HTTP request error in the response. What could be the solution for this?

file_get_contents( /v1/chat/completions): Failed to open stream: HTTP request failed! in

The error is like this.