Skip to content

Commit

Permalink
Fix response status codes for Unauthorized (401) and Forbidden (403).
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Jan 28, 2015
1 parent 7638000 commit e80e21a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gcloud/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ class BadRequest(ClientError):

class Unauthorized(ClientError):
"""Exception mapping a '401 Unauthorized' response."""
code = 400
code = 401


class Forbidden(ClientError):
"""Exception mapping a '403 Forbidden' response."""
code = 400
code = 403


class NotFound(ClientError):
Expand Down

0 comments on commit e80e21a

Please sign in to comment.