Skip to content

Instantly share code, notes, and snippets.

@JNaeemGitonga
Last active December 29, 2019 19:17
Show Gist options
  • Save JNaeemGitonga/977b342b7c95d21526a0183ade2a9060 to your computer and use it in GitHub Desktop.
Save JNaeemGitonga/977b342b7c95d21526a0183ade2a9060 to your computer and use it in GitHub Desktop.
func handleError(err error) (events.APIGatewayProxyResponse, error) {...}
func handleError(err error) (events.APIGatewayProxyResponse, error) {
return events.APIGatewayProxyResponse{
Body: err.Error(),
StatusCode: 502,
}, err
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment