Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ffc65cf

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

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎managed_vms/endpoints/main.py

Copy file name to clipboardExpand all lines: managed_vms/endpoints/main.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.