Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Spring cloud function always return 200 ok #1130

Open
shan5469 opened this issue Apr 2, 2024 · 2 comments
Open

The Spring cloud function always return 200 ok #1130

shan5469 opened this issue Apr 2, 2024 · 2 comments

Comments

@shan5469
Copy link

shan5469 commented Apr 2, 2024

Hello,

I'm trying to return a custom Http response using Function<String, ResponseEntity>, but the response status is always 200, and in case of bad request, I receive something like this in the body:

{ "headers": {}, "body": "Processed input: hello", "statusCode": "BAD_REQUEST", "statusCodeValue": 400 }

@olegz
Copy link
Contributor

olegz commented Apr 25, 2024

Can you please provide more context about your question. I honestly can make anything out of it. How do I reproduce it? What is it about?

@olegz
Copy link
Contributor

olegz commented May 1, 2024

Is the initial request an API Gateway request? Can you please post your initial request JSON?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants