allow 202 response to PUT

This commit is contained in:
Dave Horton
2021-08-11 11:13:42 -04:00
parent a74027ebff
commit ce28a9975b
4 changed files with 1396 additions and 1472 deletions

View File

@@ -20,7 +20,7 @@ class Jambonz {
const headers = {'Authorization': `Bearer ${apiKey}`};
const post = bent(baseUrl, 'POST', 'json', headers, 201);
const put = bent(baseUrl, 'PUT', headers, 204);
const put = bent(baseUrl, 'PUT', headers, 202, 204);
const get = bent(baseUrl, 'GET', 'json', headers, 200);
const del = bent(baseUrl, 'DELETE', headers, 204);