should expose symbolic names for http errors

Bug #735332 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lazr.restfulclient
Triaged
Low
Unassigned

Bug Description

I would like to be able to write something like

  except Forbidden:
    continue

rather than

  except HTTPError, e:
    if e.response.status == 403:
      continue
    else:
       raise

Tags: feature
Curtis Hovey (sinzui)
Changed in lazr.restfulclient:
status: New → Triaged
importance: Undecided → Low
tags: added: feature
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.