Skip to content

fix!: send correct response code on exception #427

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

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

matthewrobertson
Copy link
Member

This commit updates the http response we send when the customer's function throws to:

  1. always send a 500 HTTP status
  2. strip the error message from the response body when running in production

@matthewrobertson matthewrobertson force-pushed the error-messages branch 2 times, most recently from c5f8047 to 1b54b05 Compare February 15, 2022 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Handle thrown exceptions consistently with other frameworks
3 participants