# X_ACTION_PATH_STYLE_INVALID

## Means

defineApi's http.pathStyle is not a known style

## Typical cause

a `pathStyle` other than `'resource'` or `'readable'` — a typo, or a value read from config that was never one of the two. Refused at the declaration, before any path is derived under it

## Fix

defineApi({ ..., http: { pathStyle: 'readable' } }) — or 'resource', the default

[Actions](/error-codes#actions)
