Directus / @directus/errors / createError
Function: createError() ​
createError<
Extensions
>(code
,message
,status
):DirectusErrorConstructor
<Extensions
>
Defined in: packages/errors/src/create-error.ts:12
Type Parameters ​
• Extensions = void
Parameters ​
code ​
string
message ​
string
| (extensions
) => string
status ​
number
= 500
Returns ​
DirectusErrorConstructor
<Extensions
>