Directus / @directus/errors / createError
Function: createError() ​
createError<
Extensions
>(code
,message
,status
):DirectusErrorConstructor
<Extensions
>
Type Parameters ​
• Extensions = void
Parameters ​
• code: string
• message: string
| (extensions
) => string
• status: number
= 500
Returns ​
DirectusErrorConstructor
<Extensions
>