Skip to content

Reporting 5XX responses as an error on Lambda #4

Description

@muratcorlu

In current situation, if you do this;

response.status(500).end();

requester will get Internal server error but this will be logged as a successful response on Lambda side. I'm not completely sure what is the best practice for this but I feel that, 5XX statuses should be reported as errors on Lambda level too. Because that kind of errors should mean pointing a coding issue in Lambda function.

For now, the only place that we report an error on lambda level is in lambda-wrapper.js function(use function).

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions