(self)
| 112 | return exists |
| 113 | |
| 114 | def existsWithError(self): |
| 115 | response = self.client.headHelper(self.url) |
| 116 | if 'X-Error-Message' in response.headers: |
| 117 | error = response.headers['X-Error-Message'] |
| 118 | else: |
| 119 | error = response.text |
| 120 | return (response.status_code == 200, error) |
| 121 | |
| 122 | def put(self, data): |
| 123 | # Post to data api |