:doc:`BucketWebsite <index>` / Attribute / error_document

**************
error_document
**************



.. py:attribute:: S3.BucketWebsite.error_document

  

  - *(dict) --* 

    The object key name of the website error document to use for 4XX class errors.

    
    

    - **Key** *(string) --* 

      The object key name to use when a 4XX class error occurs.

       

      .. warning::

         

        Replacement must be made for object keys containing special characters (such as carriage returns) when using XML requests. For more information, see `XML related object key constraints <https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-keys.html#object-key-xml-related-constraints>`__.

        

      
