Option to receive "requests" library response

Description

Original title:
"Option to receive 'requests' library response"

When using the Synapse client to make rest requests, since no http status is returned one can get into a confusing state. For example, if `syn.restGET('/teamMembers/1234567)` is called where 1234567 is the team id, and let's say that team id is invalid, the response looks like `{'totalNumberOfResults': 0, 'results': []}`. This leaves app development in an indeterminate state – does the team exist? Or does it exist and have no members? I would like to be able to retrieve the underlying `requests` response, so that I have access to its fields like `ok` and `status_code` as well as its `raise_for_status` method.

Environment

None

Assignee

Jordan Kiang

Reporter

Tess Thyer

Labels

None

Validator

Bruce Hoff

Development Area

None

Release Version History

None

Priority

Major
Configure