Functions
createErrorResponse
- createErrorResponse(status: number, message: string): { errors: { message: string }[]; status: number }
-
Parameters
-
status: number
-
message: string
Returns { errors: { message: string }[]; status: number }
-
errors: { message: string }[]
-
status: number
Creates an error response with a standard format