After i set my r2 bucket i cant open my website

i try to set a R2 bucket and connected to my domain, but after i done that, my website is in error 4xx or 10xx, after i deleted the bucket, website mentioned ERR_CONNECTION_CLOSED, what went wrong and how to fix that