Skip to main content

Definition

Assembly: Mintlify.Core.dll Namespace: Mintlify.Core.Models Inheritance: System.Object

Syntax

Mintlify.Core.Models.Error404Config

Summary

Represents the configuration for 404 (Not Found) error handling in the Mintlify documentation site.

Remarks

This configuration controls what happens when users try to access pages that don’t exist, including whether to automatically redirect them to the home page.

Constructors

.ctor

Syntax

public Error404Config()

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

Redirect

Gets or sets whether to automatically redirect users to the home page when a 404 error occurs.

Syntax

public System.Nullable<bool> Redirect { get; set; }

Property Value

Type: System.Nullable<bool>

Remarks

When true (default), users who navigate to non-existent pages will be automatically redirected to the home page of the documentation site. When false, users will see a standard 404 error page instead. Automatic redirection can improve user experience by keeping users within the documentation rather than showing error pages.

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?