Lambda Annotations: returning alternative HTTP status codes? #1379
-
Hi! First off, many thanks for your work on the Lambda Annotations framework, it's been a breeze working with so far. I'm creating an API and I'm looking for a way to return alternative HTTP codes in exceptional situations. Consider the example API below of what I am trying to achieve:
Simply returning a non-null |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
For future readers: I haven't found any way to achieve this other than creating and returning a |
Beta Was this translation helpful? Give feedback.
-
@danielsunnerberg Currently Lambda Annotations does not support return alternative HTTP status codes out of the box. I have discussed this with the team and any updates around it would either be posted here or in the repo as separate announcement. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
-
This has now been addressed, see #979 (comment) |
Beta Was this translation helpful? Give feedback.
@danielsunnerberg Currently Lambda Annotations does not support return alternative HTTP status codes out of the box. I have discussed this with the team and any updates around it would either be posted here or in the repo as separate announcement.
Thanks,
Ashish