laurilehmijoki / s3_website

Manage an S3 website: sync, deliver via CloudFront, benefit from advanced S3 website features.
Other
2.24k stars 187 forks source link

Configure custom response codes #311

Open trondhindenes opened 6 years ago

trondhindenes commented 6 years ago

Apps such as react require a custom response error handler in cloudfront:

HTTP Error Code: 404
TTL: 0
Custom Error Response: Yes
Response Page Path: /index.html
HTTP Response Code: 200

I'm trying to figure out how I can configure this natively in s3_website - is it possible?