'error', 'message' => 'Access Denied', ]; } function userActionNotAllowedError(): array { return [ 'type' => 'error', 'message' => 'This user action is not allowed.', ]; } function entryNotFoundError(): array { return [ 'type' => 'error', 'message' => "The requested entry wasn't found.", ]; }