Last active
December 29, 2019 19:17
-
-
Save JNaeemGitonga/977b342b7c95d21526a0183ade2a9060 to your computer and use it in GitHub Desktop.
func handleError(err error) (events.APIGatewayProxyResponse, error) {...}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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