Accept both 302 and 201 response code