how to create a 404 web page with angulars, s3,

I have a web app use angularjs. I deploy it on S3 and i use to render the page for SEO. I want to create a 404 page, it should return a response status code is 404. How do I do it?.

Source: AngularJS