# Kong responding 502 Bad Gateway but backend response was 204

**URL:** <https://discuss.konghq.com/t/kong-responding-502-bad-gateway-but-backend-response-was-204/13246>\
**Category:** General\
**Created:** [December 13, 2024, 4:01pm UTC](https://discuss.konghq.com/t/kong-responding-502-bad-gateway-but-backend-response-was-204/13246 "2024-12-13T16:01:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgonzalezc](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/dgonzalezc/32/1307_2.png) [@dgonzalezc](https://discuss.konghq.com/u/dgonzalezc)\
**Post date:** [December 13, 2024, 4:01pm UTC](https://discuss.konghq.com/t/kong-responding-502-bad-gateway-but-backend-response-was-204/13246/1 "2024-12-13T16:01:51Z")

</div>

Hi,

I have a GET request that is terminating with status code 502 in Kong:

 ![imagen](https://canada1.discourse-cdn.com/flex036/uploads/konghq/original/2X/5/5ccf76d1603c65f3aa6c770a7e625bf1971188ad.png)

When i check kong logs it shows me the following:

 ![imagen](https://canada1.discourse-cdn.com/flex036/uploads/konghq/original/2X/2/20d70b65536076b1ee4085407922f6817ea5d88f.png)

When i check the backend directly shows me the following (curl):

 ![imagen](https://canada1.discourse-cdn.com/flex036/uploads/konghq/original/2X/b/b2c093dfe2296a74ae2e5a1c029d226ec382616b.png)

The same curl request with verbose:

 ![imagen](https://canada1.discourse-cdn.com/flex036/uploads/konghq/original/2X/3/3af8b25ec3d97acec19669fdb8537dc701899233.png)

Questions:  
why is Kong changing the status code of que request?  
is this a normal behavior?  
is this some kind of form-validation of the request that Kong is doing?

My setup is the following:

- Kubernetes
- Kong CE 2.2.1

Please Help!!!

Regards  
David
