Interface AxonResponseMessage

Configuration for AxonCore custom response messages.

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

Indexable

  • [key: string]: string | undefined

Properties

methodNotAllowed?: 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'
notFound?: string

response error message for 404 not found response from core

use {path} to show request method.

serverError?: string

response error message for 500 internal server error response from core