Handle an empty API response

Rails returns a `204` for successful `PUT`s and `PATCH`es. If there's no response body, I think it should be safe to fall back to whether the response code indicated success or not.