test/end-to-end: handle spurious 5xx errors
When a non-error object is returned, ignore the 5xx status code and continue. This avoids later 409 errors when attempting to create the object on a subsequent attempt.
Fixes: #93 (closed)
Extracted from !308 (merged).