"Puzzle" in API response header

There are 2 fields in API response.

[HTTP/1.1 400 Bad Request] =>
[Content-Type] => application/json
[Content-Length] => 0
[Connection] => close
[Date] => Thu, 22 Oct 2020 03:54:12 GMT
[Server] => Tengine
[x-response-time] => 2ms
[Access-Control-Allow-Origin] => *
[Access-Control-Allow-Methods] => GET, POST, PUT, DELETE, OPTIONS
[X-Cache] => Error from cloudfront
[Via] => 1.1 37b29078d1c7132540ca31b9482ea1c6.cloudfront.net (CloudFront)
[X-Amz-Cf-Pop] => LHR61-C1
[X-Amz-Cf-Id] => YpJV2q7RXobwdkL7_vGAiNEOgv_qKZAmNCKS6mTU9d6uGCr7Pk7HFQ==
[HTTP/1.1 503 Service Unavailable] =>


Thanks for the submission, although I’m not understanding the exact problem, could you please be more specific?

Thank you.

@baxsmaxbax Thanks for the info. Which endpoint are you using? Please also share with us the full request that you’re making (omitting the sensitive information), so that we can have more context.

Two fields with HTTP code result in ONE HTTP-packet:

[HTTP/1.1 400 Bad Request] 
[HTTP/1.1 503 Service Unavailable] 

I have got this and see in PHP $http_response_header


it’s impossible to see 2 http status code from one response, please check the app from client side.

For the 503, it could be a spike from the backend, please try again and let us know if it’s consistently seen in the client side.

I know that it’s impossible :slight_smile: but I saw this by my eyes :slight_smile:
I hope that will not get 503 often but will write here in this case