Maybe put a #TODO or # FIXME comment on here so somebody will know to take this out later. Seems a bit like a hack where maybe we should be returning `application/json`

Also, consider:

`elif int(response['status']) in range(400, 500)`

or

`elif response['status'].startswith('4')`