Skip to main content

MiddlewareFactoryErrorOptions

Home > @backstage/backend-app-api > MiddlewareFactoryErrorOptions

Options passed to the MiddlewareFactory.error() middleware.

Signature:

export interface MiddlewareFactoryErrorOptions 

Properties

PropertyModifiersTypeDescription
logAllErrors?boolean

(Optional) Whether any 4xx errors should be logged or not.

If not specified, default to only logging 5xx errors.

showStackTraces?boolean

(Optional) Whether error response bodies should show error stack traces or not.

If not specified, by default shows stack traces only in development mode.