Skip to content

Commit ffc65cf

Browse files
author
Jon Wayne Parrott
committed
fixing error response in endpoints sample.
Change-Id: I4a123cc8da805b2c4b61c02ad46196af8ca16bc8
1 parent 637a9fd commit ffc65cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

managed_vms/endpoints/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def auth_info_google_id_token():
7979
def unexpected_error(e):
8080
"""Handle exceptions by returning swagger-compliant json."""
8181
response = jsonify({
82-
'error': http_client.INTERNAL_SERVER_ERROR,
82+
'code': http_client.INTERNAL_SERVER_ERROR,
8383
'message': 'Exception: {}'.format(e)})
8484
response.status_code = http_client.INTERNAL_SERVER_ERROR
8585
return response

0 commit comments

Comments
 (0)