Open pchampin opened 2 months ago
Consider the following code:
getResource("http://localhost:8000/mypod/fake-folder/new-resource") .createIfAbsent() .then(result => console.log(result.isError));
If fake-folder does not exist, the POST request gets a 404, but the result has isError false and type "createSuccess"! The same behavior occurs with createAndOverwrite.
fake-folder
isError
type
createAndOverwrite
Consider the following code:
If
fake-folder
does not exist, the POST request gets a 404, but the result hasisError
false andtype
"createSuccess"! The same behavior occurs withcreateAndOverwrite
.