Type Alias AxonResponseMessage

AxonResponseMessage: {
    methodNotAllowed?: string;
    notFound?: string;
    serverError?: string;
    [key: string]: string | undefined;
}

Configuration for AxonCore custom response messages.

Type declaration

  • [key: string]: string | undefined
  • OptionalmethodNotAllowed?: string

    response error message for 405 method not allowed response from core

    use {method} to show request method.

    example:

    • config: 'Method {method} is not allowed'
    • response: 'Method TRACE is not allowed'
  • OptionalnotFound?: string

    response error message for 404 not found response from core

    use {path} to show request method.

  • OptionalserverError?: string

    response error message for 500 internal server error response from core