Stratal API Reference
    Preparing search index...

    Interface MockErrorOptions

    Options for mocking error responses

    interface MockErrorOptions {
        headers?: Record<string, string>;
        method?: string;
        path?: string;
    }
    Index

    Properties

    headers?: Record<string, string>

    Custom headers to include in the error response

    method?: string

    HTTP method to match (GET, POST, PUT, PATCH, DELETE, etc.)

    'GET'
    
    path?: string

    Specific path to override URL pathname If not provided, the pathname from the URL will be used